home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / inputs / btxhak.tex < prev    next >
LaTeX Document  |  1991-05-21  |  24.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: btxhak.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |% Copyri|ght (C) |
|00000010| 31 39 38 38 2c 20 61 6c | 6c 20 72 69 67 68 74 73 |1988, al|l rights|
|00000020| 20 72 65 73 65 72 76 65 | 64 2e 0a 0a 5c 64 65 66 | reserve|d...\def|
|00000030| 5c 42 69 62 54 65 58 7b | 7b 5c 72 6d 20 42 5c 6b |\BibTeX{|{\rm B\k|
|00000040| 65 72 6e 2d 2e 30 35 65 | 6d 7b 5c 73 63 20 69 5c |ern-.05e|m{\sc i\|
|00000050| 6b 65 72 6e 2d 2e 30 32 | 35 65 6d 20 62 7d 5c 6b |kern-.02|5em b}\k|
|00000060| 65 72 6e 2d 2e 30 38 65 | 6d 0a 20 20 20 20 54 5c |ern-.08e|m. T\|
|00000070| 6b 65 72 6e 2d 2e 31 36 | 36 37 65 6d 5c 6c 6f 77 |kern-.16|67em\low|
|00000080| 65 72 2e 37 65 78 5c 68 | 62 6f 78 7b 45 7d 5c 6b |er.7ex\h|box{E}\k|
|00000090| 65 72 6e 2d 2e 31 32 35 | 65 6d 58 7d 7d 0a 0a 5c |ern-.125|emX}}..\|
|000000a0| 74 69 74 6c 65 7b 44 65 | 73 69 67 6e 69 6e 67 20 |title{De|signing |
|000000b0| 42 5c 6b 65 72 6e 2d 2e | 30 35 65 6d 7b 5c 6c 61 |B\kern-.|05em{\la|
|000000c0| 72 67 65 20 49 7d 5c 6b | 65 72 6e 2d 2e 30 32 35 |rge I}\k|ern-.025|
|000000d0| 65 6d 7b 5c 6c 61 72 67 | 65 20 42 7d 5c 6b 65 72 |em{\larg|e B}\ker|
|000000e0| 6e 2d 2e 30 38 65 6d 5c | 54 65 58 5c 0a 09 09 09 |n-.08em\|TeX\....|
|000000f0| 09 09 09 09 09 09 53 74 | 79 6c 65 73 7d 0a 5c 61 |......St|yles}.\a|
|00000100| 75 74 68 6f 72 7b 4f 72 | 65 6e 20 50 61 74 61 73 |uthor{Or|en Patas|
|00000110| 68 6e 69 6b 7d 0a 5c 64 | 61 74 65 7b 4a 61 6e 75 |hnik}.\d|ate{Janu|
|00000120| 61 72 79 20 33 31 2c 20 | 31 39 38 38 7d 0a 0a 5c |ary 31, |1988}..\|
|00000130| 64 6f 63 75 6d 65 6e 74 | 73 74 79 6c 65 7b 61 72 |document|style{ar|
|00000140| 74 69 63 6c 65 7d 0a 5c | 62 65 67 69 6e 7b 64 6f |ticle}.\|begin{do|
|00000150| 63 75 6d 65 6e 74 7d 0a | 0a 5c 6d 61 6b 65 74 69 |cument}.|.\maketi|
|00000160| 74 6c 65 0a 0a 5c 73 65 | 74 63 6f 75 6e 74 65 72 |tle..\se|tcounter|
|00000170| 7b 73 65 63 74 69 6f 6e | 7d 7b 34 7d 0a 5c 73 65 |{section|}{4}.\se|
|00000180| 63 74 69 6f 6e 7b 42 69 | 62 6c 69 6f 67 72 61 70 |ction{Bi|bliograp|
|00000190| 68 79 2d 73 74 79 6c 65 | 20 68 61 63 6b 69 6e 67 |hy-style| hacking|
|000001a0| 7d 0a 5c 6c 61 62 65 6c | 7b 73 74 79 6c 65 7d 0a |}.\label|{style}.|
|000001b0| 0a 54 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 73 |.This do|cument s|
|000001c0| 74 61 72 74 73 20 28 61 | 6e 64 20 65 6e 64 73 29 |tarts (a|nd ends)|
|000001d0| 20 77 69 74 68 20 53 65 | 63 74 69 6f 6e 7e 5c 72 | with Se|ction~\r|
|000001e0| 65 66 7b 73 74 79 6c 65 | 7d 2c 0a 62 65 63 61 75 |ef{style|},.becau|
|000001f0| 73 65 20 69 6e 20 72 65 | 61 6c 69 74 79 20 69 74 |se in re|ality it|
|00000200| 20 69 73 20 74 68 65 20 | 66 69 6e 61 6c 20 73 65 | is the |final se|
|00000210| 63 74 69 6f 6e 20 6f 66 | 20 60 60 5c 42 69 62 54 |ction of| ``\BibT|
|00000220| 65 58 20 69 6e 67 27 27 | 7e 5c 63 69 74 65 7b 62 |eX ing''|~\cite{b|
|00000230| 74 78 64 6f 63 7d 2c 0a | 74 68 65 20 67 65 6e 65 |txdoc},.|the gene|
|00000240| 72 61 6c 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ral docu|mentatio|
|00000250| 6e 20 66 6f 72 20 5c 42 | 69 62 54 65 58 2e 0a 42 |n for \B|ibTeX..B|
|00000260| 75 74 20 74 68 61 74 20 | 64 6f 63 75 6d 65 6e 74 |ut that |document|
|00000270| 20 77 61 73 20 6d 65 61 | 6e 74 20 66 6f 72 20 61 | was mea|nt for a|
|00000280| 6c 6c 20 5c 42 69 62 54 | 65 58 5c 20 75 73 65 72 |ll \BibT|eX\ user|
|00000290| 73 2c 0a 77 68 69 6c 65 | 20 74 68 69 73 20 6f 6e |s,.while| this on|
|000002a0| 65 20 69 73 20 6a 75 73 | 74 20 66 6f 72 20 73 74 |e is jus|t for st|
|000002b0| 79 6c 65 20 64 65 73 69 | 67 6e 65 72 73 2c 0a 73 |yle desi|gners,.s|
|000002c0| 6f 20 74 68 65 20 74 77 | 6f 20 61 72 65 20 70 68 |o the tw|o are ph|
|000002d0| 79 73 69 63 61 6c 6c 79 | 20 73 65 70 61 72 61 74 |ysically| separat|
|000002e0| 65 2e 0a 53 74 69 6c 6c | 2c 20 79 6f 75 20 73 68 |e..Still|, you sh|
|000002f0| 6f 75 6c 64 20 62 65 20 | 63 6f 6d 70 6c 65 74 65 |ould be |complete|
|00000300| 6c 79 20 66 61 6d 69 6c | 69 61 72 20 77 69 74 68 |ly famil|iar with|
|00000310| 20 60 60 5c 42 69 62 54 | 65 58 20 69 6e 67 27 27 | ``\BibT|eX ing''|
|00000320| 2c 0a 61 6e 64 20 61 6c | 6c 20 72 65 66 65 72 65 |,.and al|l refere|
|00000330| 6e 63 65 73 20 69 6e 20 | 74 68 69 73 20 64 6f 63 |nces in |this doc|
|00000340| 75 6d 65 6e 74 0a 74 6f | 20 73 65 63 74 69 6f 6e |ument.to| section|
|00000350| 73 20 61 6e 64 20 73 65 | 63 74 69 6f 6e 20 6e 75 |s and se|ction nu|
|00000360| 6d 62 65 72 73 0a 61 73 | 73 75 6d 65 20 74 68 61 |mbers.as|sume tha|
|00000370| 74 20 74 68 65 20 74 77 | 6f 20 64 6f 63 75 6d 65 |t the tw|o docume|
|00000380| 6e 74 73 20 61 72 65 20 | 6f 6e 65 2e 0a 0a 54 68 |nts are |one...Th|
|00000390| 69 73 20 73 65 63 74 69 | 6f 6e 2c 0a 61 6c 6f 6e |is secti|on,.alon|
|000003a0| 67 20 77 69 74 68 20 74 | 68 65 20 73 74 61 6e 64 |g with t|he stand|
|000003b0| 61 72 64 2d 73 74 79 6c | 65 20 64 6f 63 75 6d 65 |ard-styl|e docume|
|000003c0| 6e 74 61 74 69 6f 6e 20 | 66 69 6c 65 20 5c 68 62 |ntation |file \hb|
|000003d0| 6f 78 7b 5c 74 74 20 62 | 74 78 62 73 74 2e 64 6f |ox{\tt b|txbst.do|
|000003e0| 63 7d 2c 0a 73 68 6f 75 | 6c 64 20 65 78 70 6c 61 |c},.shou|ld expla|
|000003f0| 69 6e 20 68 6f 77 20 74 | 6f 20 6d 6f 64 69 66 79 |in how t|o modify|
|00000400| 0a 65 78 69 73 74 69 6e | 67 20 73 74 79 6c 65 20 |.existin|g style |
|00000410| 66 69 6c 65 73 20 61 6e | 64 20 74 6f 20 70 72 6f |files an|d to pro|
|00000420| 64 75 63 65 20 6e 65 77 | 20 6f 6e 65 73 2e 0a 49 |duce new| ones..I|
|00000430| 66 20 79 6f 75 27 72 65 | 20 61 20 73 65 72 69 6f |f you're| a serio|
|00000440| 75 73 20 73 74 79 6c 65 | 20 68 61 63 6b 65 72 20 |us style| hacker |
|00000450| 79 6f 75 20 73 68 6f 75 | 6c 64 20 62 65 20 66 61 |you shou|ld be fa|
|00000460| 6d 69 6c 69 61 72 0a 77 | 69 74 68 20 76 61 6e 7e |miliar.w|ith van~|
|00000470| 4c 65 75 6e 65 6e 7e 5c | 63 69 74 65 7b 76 61 6e |Leunen~\|cite{van|
|00000480| 2d 6c 65 75 6e 65 6e 7d | 20 66 6f 72 20 70 6f 69 |-leunen}| for poi|
|00000490| 6e 74 73 20 6f 66 20 73 | 74 79 6c 65 2c 0a 77 69 |nts of s|tyle,.wi|
|000004a0| 74 68 20 4c 61 6d 70 6f | 72 74 7e 5c 63 69 74 65 |th Lampo|rt~\cite|
|000004b0| 7b 6c 61 74 65 78 7d 20 | 61 6e 64 20 4b 6e 75 74 |{latex} |and Knut|
|000004c0| 68 7e 5c 63 69 74 65 7b | 74 65 78 62 6f 6f 6b 7d |h~\cite{|texbook}|
|000004d0| 20 66 6f 72 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 | for for|matting |
|000004e0| 6d 61 74 74 65 72 73 2c | 0a 61 6e 64 20 70 65 72 |matters,|.and per|
|000004f0| 68 61 70 73 20 77 69 74 | 68 20 7b 5c 65 6d 20 53 |haps wit|h {\em S|
|00000500| 63 72 69 62 65 5c 2f 7d | 7e 5c 63 69 74 65 7b 73 |cribe\/}|~\cite{s|
|00000510| 63 72 69 62 65 7d 20 66 | 6f 72 20 63 6f 6d 70 61 |cribe} f|or compa|
|00000520| 74 69 62 69 6c 69 74 79 | 20 64 65 74 61 69 6c 73 |tibility| details|
|00000530| 2e 0a 41 6e 64 20 77 68 | 69 6c 65 20 79 6f 75 27 |..And wh|ile you'|
|00000540| 72 65 20 61 74 20 69 74 | 2c 20 69 66 20 79 6f 75 |re at it|, if you|
|00000550| 20 64 6f 6e 27 74 20 72 | 65 61 64 20 74 68 65 20 | don't r|ead the |
|00000560| 67 72 65 61 74 20 6c 69 | 74 74 6c 65 20 62 6f 6f |great li|ttle boo|
|00000570| 6b 20 62 79 20 53 74 72 | 75 6e 6b 20 61 6e 64 0a |k by Str|unk and.|
|00000580| 57 68 69 74 65 7e 5c 63 | 69 74 65 7b 73 74 72 75 |White~\c|ite{stru|
|00000590| 6e 6b 2d 61 6e 64 2d 77 | 68 69 74 65 7d 2c 20 79 |nk-and-w|hite}, y|
|000005a0| 6f 75 20 73 68 6f 75 6c | 64 20 61 74 20 6c 65 61 |ou shoul|d at lea|
|000005b0| 73 74 20 6c 6f 6f 6b 20 | 61 74 20 69 74 73 0a 65 |st look |at its.e|
|000005c0| 6e 74 72 69 65 73 20 69 | 6e 20 74 68 65 20 64 61 |ntries i|n the da|
|000005d0| 74 61 62 61 73 65 20 61 | 6e 64 20 74 68 65 20 72 |tabase a|nd the r|
|000005e0| 65 66 65 72 65 6e 63 65 | 20 6c 69 73 74 0a 74 6f |eference| list.to|
|000005f0| 20 73 65 65 20 68 6f 77 | 20 5c 42 69 62 54 65 58 | see how| \BibTeX|
|00000600| 5c 20 68 61 6e 64 6c 65 | 73 20 6d 75 6c 74 69 70 |\ handle|s multip|
|00000610| 6c 65 20 6e 61 6d 65 73 | 2e 0a 0a 54 6f 20 63 72 |le names|...To cr|
|00000620| 65 61 74 65 20 61 20 6e | 65 77 20 73 74 79 6c 65 |eate a n|ew style|
|00000630| 2c 0a 69 74 27 73 20 62 | 65 73 74 20 74 6f 20 73 |,.it's b|est to s|
|00000640| 74 61 72 74 20 77 69 74 | 68 20 61 6e 20 65 78 69 |tart wit|h an exi|
|00000650| 73 74 69 6e 67 20 73 74 | 79 6c 65 20 74 68 61 74 |sting st|yle that|
|00000660| 27 73 20 63 6c 6f 73 65 | 20 74 6f 20 79 6f 75 72 |'s close| to your|
|00000670| 73 2c 0a 61 6e 64 20 74 | 68 65 6e 20 6d 6f 64 69 |s,.and t|hen modi|
|00000680| 66 79 20 74 68 61 74 2e | 0a 54 68 69 73 20 69 73 |fy that.|.This is|
|00000690| 20 74 72 75 65 20 65 76 | 65 6e 20 69 66 20 79 6f | true ev|en if yo|
|000006a0| 75 27 72 65 20 73 69 6d | 70 6c 79 20 75 70 64 61 |u're sim|ply upda|
|000006b0| 74 69 6e 67 20 61 6e 20 | 6f 6c 64 20 73 74 79 6c |ting an |old styl|
|000006c0| 65 0a 66 6f 72 20 5c 42 | 69 62 54 65 58 5c 20 76 |e.for \B|ibTeX\ v|
|000006d0| 65 72 73 69 6f 6e 20 30 | 2e 39 39 0a 28 49 27 76 |ersion 0|.99.(I'v|
|000006e0| 65 20 75 70 64 61 74 65 | 64 20 66 6f 75 72 20 6e |e update|d four n|
|000006f0| 6f 6e 73 74 61 6e 64 61 | 72 64 20 73 74 79 6c 65 |onstanda|rd style|
|00000700| 73 2c 0a 73 6f 20 49 20 | 73 61 79 20 74 68 69 73 |s,.so I |say this|
|00000710| 20 77 69 74 68 20 73 6f | 6d 65 20 65 78 70 65 72 | with so|me exper|
|00000720| 69 65 6e 63 65 29 2e 0a | 49 66 20 79 6f 75 20 77 |ience)..|If you w|
|00000730| 61 6e 74 20 74 6f 20 69 | 6e 73 65 72 74 20 69 6e |ant to i|nsert in|
|00000740| 74 6f 20 61 20 6e 65 77 | 20 73 74 79 6c 65 0a 73 |to a new| style.s|
|00000750| 6f 6d 65 20 66 75 6e 63 | 74 69 6f 6e 20 79 6f 75 |ome func|tion you|
|00000760| 27 64 20 77 72 69 74 74 | 65 6e 20 66 6f 72 20 61 |'d writt|en for a|
|00000770| 6e 20 6f 6c 64 20 28 76 | 65 72 73 69 6f 6e 20 30 |n old (v|ersion 0|
|00000780| 2e 39 38 69 29 20 73 74 | 79 6c 65 2c 0a 6b 65 65 |.98i) st|yle,.kee|
|00000790| 70 20 69 6e 20 6d 69 6e | 64 20 74 68 61 74 20 74 |p in min|d that t|
|000007a0| 68 65 20 6f 72 64 65 72 | 20 6f 66 20 74 68 65 20 |he order| of the |
|000007b0| 61 72 67 75 6d 65 6e 74 | 73 20 74 6f 0a 74 68 65 |argument|s to.the|
|000007c0| 20 61 73 73 69 67 6e 6d | 65 6e 74 20 28 7b 5c 74 | assignm|ent ({\t|
|000007d0| 74 20 3a 3d 7d 29 20 66 | 75 6e 63 74 69 6f 6e 20 |t :=}) f|unction |
|000007e0| 68 61 73 20 62 65 65 6e | 20 72 65 76 65 72 73 65 |has been| reverse|
|000007f0| 64 2e 0a 57 68 65 6e 20 | 79 6f 75 27 72 65 20 66 |d..When |you're f|
|00000800| 69 6e 69 73 68 65 64 20 | 77 69 74 68 20 79 6f 75 |inished |with you|
|00000810| 72 20 73 74 79 6c 65 2c | 0a 79 6f 75 20 6d 61 79 |r style,|.you may|
|00000820| 20 77 61 6e 74 20 74 6f | 20 74 72 79 20 72 75 6e | want to| try run|
|00000830| 6e 69 6e 67 20 69 74 20 | 6f 6e 20 74 68 65 20 65 |ning it |on the e|
|00000840| 6e 74 69 72 65 20 5c 68 | 62 6f 78 7b 5c 74 74 20 |ntire \h|box{\tt |
|00000850| 58 41 4d 50 4c 2e 42 49 | 42 7d 20 64 61 74 61 62 |XAMPL.BI|B} datab|
|00000860| 61 73 65 0a 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |ase.to m|ake sure|
|00000870| 20 69 74 20 68 61 6e 64 | 6c 65 73 20 61 6c 6c 20 | it hand|les all |
|00000880| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 65 6e 74 |the stan|dard ent|
|00000890| 72 79 20 74 79 70 65 73 | 2e 0a 0a 49 66 20 79 6f |ry types|...If yo|
|000008a0| 75 20 66 69 6e 64 20 61 | 6e 79 20 62 75 67 73 20 |u find a|ny bugs |
|000008b0| 69 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |in the s|tandard |
|000008c0| 73 74 79 6c 65 73 2c 0a | 6f 72 20 69 66 20 74 68 |styles,.|or if th|
|000008d0| 65 72 65 20 61 72 65 20 | 74 68 69 6e 67 73 20 79 |ere are |things y|
|000008e0| 6f 75 27 64 20 6c 69 6b | 65 20 74 6f 20 64 6f 0a |ou'd lik|e to do.|
|000008f0| 77 69 74 68 20 62 69 62 | 6c 69 6f 67 72 61 70 68 |with bib|liograph|
|00000900| 79 2d 73 74 79 6c 65 20 | 66 69 6c 65 73 20 62 75 |y-style |files bu|
|00000910| 74 20 63 61 6e 27 74 2c | 0a 70 6c 65 61 73 65 20 |t can't,|.please |
|00000920| 63 6f 6d 70 6c 61 69 6e | 20 74 6f 20 4f 72 65 6e |complain| to Oren|
|00000930| 20 50 61 74 61 73 68 6e | 69 6b 2e 0a 0a 0a 5c 73 | Patashn|ik....\s|
|00000940| 75 62 73 65 63 74 69 6f | 6e 7b 47 65 6e 65 72 61 |ubsectio|n{Genera|
|00000950| 6c 20 64 65 73 63 72 69 | 70 74 69 6f 6e 7d 0a 0a |l descri|ption}..|
|00000960| 59 6f 75 20 77 72 69 74 | 65 20 62 69 62 6c 69 6f |You writ|e biblio|
|00000970| 67 72 61 70 68 79 20 73 | 74 79 6c 65 73 20 69 6e |graphy s|tyles in|
|00000980| 20 61 20 70 6f 73 74 66 | 69 78 20 73 74 61 63 6b | a postf|ix stack|
|00000990| 20 6c 61 6e 67 75 61 67 | 65 2e 20 20 49 74 27 73 | languag|e. It's|
|000009a0| 0a 6e 6f 74 20 74 6f 6f | 20 68 61 72 64 20 74 6f |.not too| hard to|
|000009b0| 20 66 69 67 75 72 65 20 | 6f 75 74 20 68 6f 77 20 | figure |out how |
|000009c0| 62 79 20 6c 6f 6f 6b 69 | 6e 67 20 61 74 20 74 68 |by looki|ng at th|
|000009d0| 65 20 73 74 61 6e 64 61 | 72 64 2d 73 74 79 6c 65 |e standa|rd-style|
|000009e0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2c 0a | documen|tation,.|
|000009f0| 62 75 74 20 74 68 69 73 | 20 64 65 73 63 72 69 70 |but this| descrip|
|00000a00| 74 69 6f 6e 20 66 69 6c | 6c 73 20 69 6e 20 61 20 |tion fil|ls in a |
|00000a10| 66 65 77 20 64 65 74 61 | 69 6c 73 20 28 69 74 20 |few deta|ils (it |
|00000a20| 77 69 6c 6c 20 66 69 6c | 6c 20 69 6e 20 6d 6f 72 |will fil|l in mor|
|00000a30| 65 0a 64 65 74 61 69 6c | 73 20 69 66 20 74 68 65 |e.detail|s if the|
|00000a40| 72 65 27 73 20 61 20 64 | 65 6d 61 6e 64 20 66 6f |re's a d|emand fo|
|00000a50| 72 20 69 74 29 2e 0a 0a | 42 61 73 69 63 61 6c 6c |r it)...|Basicall|
|00000a60| 79 20 74 68 65 20 73 74 | 79 6c 65 20 66 69 6c 65 |y the st|yle file|
|00000a70| 20 69 73 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 77 | is a pr|ogram, w|
|00000a80| 72 69 74 74 65 6e 20 69 | 6e 20 61 6e 20 75 6e 6e |ritten i|n an unn|
|00000a90| 61 6d 65 64 20 6c 61 6e | 67 75 61 67 65 2c 20 74 |amed lan|guage, t|
|00000aa0| 68 61 74 0a 74 65 6c 6c | 73 20 5c 42 69 62 54 65 |hat.tell|s \BibTe|
|00000ab0| 58 5c 20 68 6f 77 20 74 | 6f 20 66 6f 72 6d 61 74 |X\ how t|o format|
|00000ac0| 20 74 68 65 20 65 6e 74 | 72 69 65 73 20 74 68 61 | the ent|ries tha|
|00000ad0| 74 20 77 69 6c 6c 20 67 | 6f 20 69 6e 20 74 68 65 |t will g|o in the|
|00000ae0| 20 72 65 66 65 72 65 6e | 63 65 20 6c 69 73 74 0a | referen|ce list.|
|00000af0| 28 68 65 6e 63 65 66 6f | 72 74 68 20 60 60 74 68 |(hencefo|rth ``th|
|00000b00| 65 20 65 6e 74 72 69 65 | 73 27 27 20 77 69 6c 6c |e entrie|s'' will|
|00000b10| 20 62 65 20 60 60 74 68 | 65 20 65 6e 74 72 79 20 | be ``th|e entry |
|00000b20| 6c 69 73 74 27 27 0a 6f | 72 20 73 69 6d 70 6c 79 |list''.o|r simply|
|00000b30| 20 60 60 74 68 65 20 6c | 69 73 74 27 27 24 5c 21 | ``the l|ist''$\!|
|00000b40| 24 2c 20 63 6f 6e 74 65 | 78 74 20 70 65 72 6d 69 |$, conte|xt permi|
|00000b50| 74 74 69 6e 67 29 2e 0a | 54 68 69 73 20 70 72 6f |tting)..|This pro|
|00000b60| 67 72 61 6d 6d 69 6e 67 | 20 6c 61 6e 67 75 61 67 |gramming| languag|
|00000b70| 65 20 68 61 73 20 74 65 | 6e 20 63 6f 6d 6d 61 6e |e has te|n comman|
|00000b80| 64 73 2c 20 64 65 73 63 | 72 69 62 65 64 20 69 6e |ds, desc|ribed in|
|00000b90| 20 74 68 65 20 6e 65 78 | 74 20 73 75 62 73 65 63 | the nex|t subsec|
|00000ba0| 74 69 6f 6e 2e 0a 54 68 | 65 73 65 20 63 6f 6d 6d |tion..Th|ese comm|
|00000bb0| 61 6e 64 73 20 6d 61 6e | 69 70 75 6c 61 74 65 20 |ands man|ipulate |
|00000bc0| 74 68 65 20 6c 61 6e 67 | 75 61 67 65 27 73 20 6f |the lang|uage's o|
|00000bd0| 62 6a 65 63 74 73 3a 0a | 63 6f 6e 73 74 61 6e 74 |bjects:.|constant|
|00000be0| 73 2c 20 76 61 72 69 61 | 62 6c 65 73 2c 20 66 75 |s, varia|bles, fu|
|00000bf0| 6e 63 74 69 6f 6e 73 2c | 20 74 68 65 20 73 74 61 |nctions,| the sta|
|00000c00| 63 6b 2c 20 61 6e 64 20 | 74 68 65 20 65 6e 74 72 |ck, and |the entr|
|00000c10| 79 20 6c 69 73 74 2e 0a | 28 57 61 72 6e 69 6e 67 |y list..|(Warning|
|00000c20| 3a 20 54 68 65 20 74 65 | 72 6d 69 6e 6f 6c 6f 67 |: The te|rminolog|
|00000c30| 79 20 69 6e 20 74 68 69 | 73 20 64 6f 63 75 6d 65 |y in thi|s docume|
|00000c40| 6e 74 61 74 69 6f 6e 2c | 0a 63 68 6f 73 65 6e 20 |ntation,|.chosen |
|00000c50| 66 6f 72 20 65 61 73 65 | 20 6f 66 20 65 78 70 6c |for ease| of expl|
|00000c60| 61 6e 61 74 69 6f 6e 2c | 20 69 73 20 73 6c 69 67 |anation,| is slig|
|00000c70| 68 74 6c 79 20 64 69 66 | 66 65 72 65 6e 74 20 66 |htly dif|ferent f|
|00000c80| 72 6f 6d 20 5c 42 69 62 | 54 65 58 27 73 2e 0a 46 |rom \Bib|TeX's..F|
|00000c90| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 69 73 |or examp|le, this|
|00000ca0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 27 73 | documen|tation's|
|00000cb0| 20 60 60 76 61 72 69 61 | 62 6c 65 73 27 27 20 61 | ``varia|bles'' a|
|00000cc0| 6e 64 20 60 60 66 75 6e | 63 74 69 6f 6e 73 27 27 |nd ``fun|ctions''|
|00000cd0| 0a 61 72 65 20 62 6f 74 | 68 20 60 60 66 75 6e 63 |.are bot|h ``func|
|00000ce0| 74 69 6f 6e 73 27 27 20 | 74 6f 20 5c 42 69 62 54 |tions'' |to \BibT|
|00000cf0| 65 58 2e 0a 4b 65 65 70 | 20 74 68 69 73 20 69 6e |eX..Keep| this in|
|00000d00| 20 6d 69 6e 64 20 77 68 | 65 6e 20 69 6e 74 65 72 | mind wh|en inter|
|00000d10| 70 72 65 74 69 6e 67 20 | 5c 42 69 62 54 65 58 27 |preting |\BibTeX'|
|00000d20| 73 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 |s error |messages|
|00000d30| 2e 29 0a 0a 54 68 65 72 | 65 20 61 72 65 20 74 77 |.)..Ther|e are tw|
|00000d40| 6f 20 74 79 70 65 73 20 | 6f 66 20 66 75 6e 63 74 |o types |of funct|
|00000d50| 69 6f 6e 73 3a 20 7b 5c | 69 74 20 62 75 69 6c 74 |ions: {\|it built|
|00000d60| 2d 69 6e 5c 2f 7d 20 6f | 6e 65 73 20 74 68 61 74 |-in\/} o|nes that|
|00000d70| 20 5c 42 69 62 54 65 58 | 5c 20 70 72 6f 76 69 64 | \BibTeX|\ provid|
|00000d80| 65 73 0a 28 74 68 65 73 | 65 20 61 72 65 20 64 65 |es.(thes|e are de|
|00000d90| 73 63 72 69 62 65 64 20 | 69 6e 20 53 65 63 74 69 |scribed |in Secti|
|00000da0| 6f 6e 7e 5c 72 65 66 7b | 62 75 69 6c 74 2d 69 6e |on~\ref{|built-in|
|00000db0| 2d 66 6e 73 7d 29 2c 20 | 61 6e 64 20 6f 6e 65 73 |-fns}), |and ones|
|00000dc0| 20 79 6f 75 20 64 65 66 | 69 6e 65 0a 75 73 69 6e | you def|ine.usin|
|00000dd0| 67 20 65 69 74 68 65 72 | 20 74 68 65 20 5c 68 62 |g either| the \hb|
|00000de0| 6f 78 7b 5c 74 74 20 4d | 41 43 52 4f 7d 20 6f 72 |ox{\tt M|ACRO} or|
|00000df0| 20 5c 68 62 6f 78 7b 5c | 74 74 20 46 55 4e 43 54 | \hbox{\|tt FUNCT|
|00000e00| 49 4f 4e 7d 20 63 6f 6d | 6d 61 6e 64 2e 0a 0a 59 |ION} com|mand...Y|
|00000e10| 6f 75 72 20 6d 6f 73 74 | 20 74 69 6d 65 2d 63 6f |our most| time-co|
|00000e20| 6e 73 75 6d 69 6e 67 20 | 74 61 73 6b 2c 20 61 73 |nsuming |task, as|
|00000e30| 20 61 20 73 74 79 6c 65 | 20 64 65 73 69 67 6e 65 | a style| designe|
|00000e40| 72 2c 0a 77 69 6c 6c 20 | 62 65 20 63 72 65 61 74 |r,.will |be creat|
|00000e50| 69 6e 67 20 6f 72 20 6d | 6f 64 69 66 79 69 6e 67 |ing or m|odifying|
|00000e60| 20 66 75 6e 63 74 69 6f | 6e 73 0a 75 73 69 6e 67 | functio|ns.using|
|00000e70| 20 74 68 65 20 5c 68 62 | 6f 78 7b 5c 74 74 20 46 | the \hb|ox{\tt F|
|00000e80| 55 4e 43 54 49 4f 4e 7d | 20 63 6f 6d 6d 61 6e 64 |UNCTION}| command|
|00000e90| 0a 28 61 63 74 75 61 6c | 6c 79 2c 20 62 65 63 6f |.(actual|ly, beco|
|00000ea0| 6d 69 6e 67 20 66 61 6d | 69 6c 69 61 72 20 77 69 |ming fam|iliar wi|
|00000eb0| 74 68 20 74 68 65 20 72 | 65 66 65 72 65 6e 63 65 |th the r|eference|
|00000ec0| 73 20 6c 69 73 74 65 64 | 20 61 62 6f 76 65 20 77 |s listed| above w|
|00000ed0| 69 6c 6c 20 62 65 0a 6d | 6f 72 65 20 74 69 6d 65 |ill be.m|ore time|
|00000ee0| 20 63 6f 6e 73 75 6d 69 | 6e 67 2c 20 62 75 74 20 | consumi|ng, but |
|00000ef0| 61 73 73 75 6d 65 20 66 | 6f 72 20 74 68 65 20 6d |assume f|or the m|
|00000f00| 6f 6d 65 6e 74 20 74 68 | 61 74 20 74 68 61 74 27 |oment th|at that'|
|00000f10| 73 20 64 6f 6e 65 29 2e | 0a 0a 4c 65 74 27 73 20 |s done).|..Let's |
|00000f20| 6c 6f 6f 6b 20 61 74 20 | 61 20 73 61 6d 70 6c 65 |look at |a sample|
|00000f30| 20 66 75 6e 63 74 69 6f | 6e 20 66 72 61 67 6d 65 | functio|n fragme|
|00000f40| 6e 74 2e 0a 53 75 70 70 | 6f 73 65 20 79 6f 75 20 |nt..Supp|ose you |
|00000f50| 68 61 76 65 20 61 20 73 | 74 72 69 6e 67 20 76 61 |have a s|tring va|
|00000f60| 72 69 61 62 6c 65 20 6e | 61 6d 65 64 20 5c 68 62 |riable n|amed \hb|
|00000f70| 6f 78 7b 5c 74 74 20 6c | 61 62 65 6c 7d 0a 61 6e |ox{\tt l|abel}.an|
|00000f80| 64 20 61 6e 20 69 6e 74 | 65 67 65 72 20 76 61 72 |d an int|eger var|
|00000f90| 69 61 62 6c 65 20 6e 61 | 6d 65 64 20 5c 68 62 6f |iable na|med \hbo|
|00000fa0| 78 7b 5c 74 74 20 6c 61 | 62 2e 77 69 64 74 68 7d |x{\tt la|b.width}|
|00000fb0| 2c 0a 61 6e 64 20 73 75 | 70 70 6f 73 65 20 79 6f |,.and su|ppose yo|
|00000fc0| 75 20 77 61 6e 74 20 74 | 6f 20 61 70 70 65 6e 64 |u want t|o append|
|00000fd0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 60 | the cha|racter `|
|00000fe0| 7b 5c 74 74 20 61 7d 27 | 20 74 6f 20 5c 68 62 6f |{\tt a}'| to \hbo|
|00000ff0| 78 7b 5c 74 74 20 6c 61 | 62 65 6c 7d 0a 61 6e 64 |x{\tt la|bel}.and|
|00001000| 20 74 6f 20 69 6e 63 72 | 65 6d 65 6e 74 20 5c 68 | to incr|ement \h|
|00001010| 62 6f 78 7b 5c 74 74 20 | 6c 61 62 2e 77 69 64 74 |box{\tt |lab.widt|
|00001020| 68 7d 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |h}:.\beg|in{verba|
|00001030| 74 69 6d 7d 0a 20 20 20 | 20 2e 20 20 2e 20 20 2e |tim}. | . . .|
|00001040| 0a 20 20 20 20 6c 61 62 | 65 6c 20 22 61 22 20 2a |. lab|el "a" *|
|00001050| 20 27 6c 61 62 65 6c 20 | 3a 3d 20 20 20 20 20 20 | 'label |:= |
|00001060| 20 20 20 20 25 20 6c 61 | 62 65 6c 20 3a 3d 20 6c | % la|bel := l|
|00001070| 61 62 65 6c 20 2a 20 22 | 61 22 0a 20 20 20 20 6c |abel * "|a". l|
|00001080| 61 62 2e 77 69 64 74 68 | 20 23 31 20 2b 20 27 6c |ab.width| #1 + 'l|
|00001090| 61 62 2e 77 69 64 74 68 | 20 3a 3d 20 20 20 25 20 |ab.width| := % |
|000010a0| 6c 61 62 2e 77 69 64 74 | 68 20 3a 3d 20 6c 61 62 |lab.widt|h := lab|
|000010b0| 2e 77 69 64 74 68 20 2b | 20 31 0a 20 20 20 20 2e |.width +| 1. .|
|000010c0| 20 20 2e 20 20 2e 0a 5c | 65 6e 64 7b 76 65 72 62 | . ..\|end{verb|
|000010d0| 61 74 69 6d 7d 0a 49 6e | 20 74 68 65 20 66 69 72 |atim}.In| the fir|
|000010e0| 73 74 20 6c 69 6e 65 2c | 0a 5c 68 62 6f 78 7b 5c |st line,|.\hbox{\|
|000010f0| 74 74 20 6c 61 62 65 6c | 7d 20 70 75 73 68 65 73 |tt label|} pushes|
|00001100| 20 74 68 61 74 20 76 61 | 72 69 61 62 6c 65 27 73 | that va|riable's|
|00001110| 20 76 61 6c 75 65 20 6f | 6e 74 6f 20 74 68 65 20 | value o|nto the |
|00001120| 73 74 61 63 6b 2e 0a 4e | 65 78 74 2c 20 74 68 65 |stack..N|ext, the|
|00001130| 20 7b 5c 74 74 20 22 61 | 22 7d 20 70 75 73 68 65 | {\tt "a|"} pushe|
|00001140| 73 20 74 68 65 20 73 74 | 72 69 6e 67 20 63 6f 6e |s the st|ring con|
|00001150| 73 74 61 6e 74 20 60 7b | 5c 74 74 20 61 7d 27 20 |stant `{|\tt a}' |
|00001160| 6f 6e 74 6f 20 74 68 65 | 20 73 74 61 63 6b 2e 0a |onto the| stack..|
|00001170| 54 68 65 6e 20 74 68 65 | 20 62 75 69 6c 74 2d 69 |Then the| built-i|
|00001180| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 7b 5c 74 74 20 |n functi|on {\tt |
|00001190| 2a 7d 20 70 6f 70 73 20 | 74 68 65 20 74 6f 70 20 |*} pops |the top |
|000011a0| 74 77 6f 20 73 74 72 69 | 6e 67 73 20 61 6e 64 0a |two stri|ngs and.|
|000011b0| 70 75 73 68 65 73 20 74 | 68 65 69 72 20 63 6f 6e |pushes t|heir con|
|000011c0| 63 61 74 65 6e 61 74 69 | 6f 6e 2e 0a 54 68 65 20 |catenati|on..The |
|000011d0| 5c 68 62 6f 78 7b 5c 74 | 74 20 27 6c 61 62 65 6c |\hbox{\t|t 'label|
|000011e0| 7d 20 70 75 73 68 65 73 | 20 74 68 61 74 20 76 61 |} pushes| that va|
|000011f0| 72 69 61 62 6c 65 27 73 | 20 6e 61 6d 65 20 6f 6e |riable's| name on|
|00001200| 74 6f 20 74 68 65 20 73 | 74 61 63 6b 2e 0a 41 6e |to the s|tack..An|
|00001210| 64 20 66 69 6e 61 6c 6c | 79 2c 20 74 68 65 20 62 |d finall|y, the b|
|00001220| 75 69 6c 74 2d 69 6e 20 | 66 75 6e 63 74 69 6f 6e |uilt-in |function|
|00001230| 20 7b 5c 74 74 20 3a 3d | 7d 20 70 6f 70 73 0a 74 | {\tt :=|} pops.t|
|00001240| 68 65 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |he varia|ble name|
|00001250| 20 61 6e 64 20 74 68 65 | 20 63 6f 6e 63 61 74 65 | and the| concate|
|00001260| 6e 61 74 69 6f 6e 20 61 | 6e 64 20 70 65 72 66 6f |nation a|nd perfo|
|00001270| 72 6d 73 20 74 68 65 20 | 61 73 73 69 67 6e 6d 65 |rms the |assignme|
|00001280| 6e 74 2e 0a 5c 42 69 62 | 54 65 58 5c 20 74 72 65 |nt..\Bib|TeX\ tre|
|00001290| 61 74 73 20 74 68 65 20 | 73 74 75 66 66 20 66 6f |ats the |stuff fo|
|000012a0| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 7b 5c 74 74 |llowing |the {\tt|
|000012b0| 20 5c 25 7d 20 61 73 20 | 61 20 63 6f 6d 6d 65 6e | \%} as |a commen|
|000012c0| 74 0a 69 6e 20 74 68 65 | 20 73 74 79 6c 65 20 66 |t.in the| style f|
|000012d0| 69 6c 65 2e 0a 54 68 65 | 20 73 65 63 6f 6e 64 20 |ile..The| second |
|000012e0| 6c 69 6e 65 20 69 73 20 | 73 69 6d 69 6c 61 72 20 |line is |similar |
|000012f0| 65 78 63 65 70 74 20 74 | 68 61 74 20 69 74 20 75 |except t|hat it u|
|00001300| 73 65 73 20 7b 5c 74 74 | 20 5c 23 31 7d 2c 0a 77 |ses {\tt| \#1},.w|
|00001310| 69 74 68 20 6e 6f 20 73 | 70 61 63 65 73 20 69 6e |ith no s|paces in|
|00001320| 74 65 72 76 65 6e 69 6e | 67 20 62 65 74 77 65 65 |tervenin|g betwee|
|00001330| 6e 20 74 68 65 20 60 7b | 5c 74 74 20 5c 23 7d 27 |n the `{|\tt \#}'|
|00001340| 20 61 6e 64 20 74 68 65 | 20 60 7b 5c 74 74 20 31 | and the| `{\tt 1|
|00001350| 7d 27 24 5c 21 24 2c 0a | 74 6f 20 70 75 73 68 20 |}'$\!$,.|to push |
|00001360| 74 68 69 73 20 69 6e 74 | 65 67 65 72 20 63 6f 6e |this int|eger con|
|00001370| 73 74 61 6e 74 2e 0a 0a | 54 68 65 20 6e 6f 6e 6e |stant...|The nonn|
|00001380| 75 6c 6c 20 73 70 61 63 | 69 6e 67 20 68 65 72 65 |ull spac|ing here|
|00001390| 20 69 73 20 61 72 62 69 | 74 72 61 72 79 3a 20 6d | is arbi|trary: m|
|000013a0| 75 6c 74 69 70 6c 65 20 | 73 70 61 63 65 73 2c 20 |ultiple |spaces, |
|000013b0| 74 61 62 73 2c 20 6f 72 | 20 6e 65 77 6c 69 6e 65 |tabs, or| newline|
|000013c0| 73 0a 61 72 65 20 65 71 | 75 69 76 61 6c 65 6e 74 |s.are eq|uivalent|
|000013d0| 20 74 6f 20 61 20 73 69 | 6e 67 6c 65 20 6f 6e 65 | to a si|ngle one|
|000013e0| 20 28 65 78 63 65 70 74 | 20 74 68 61 74 20 79 6f | (except| that yo|
|000013f0| 75 27 72 65 20 70 72 6f | 62 61 62 6c 79 20 62 65 |u're pro|bably be|
|00001400| 74 74 65 72 20 6f 66 66 | 0a 6e 6f 74 20 68 61 76 |tter off|.not hav|
|00001410| 69 6e 67 20 62 6c 61 6e | 6b 20 6c 69 6e 65 73 20 |ing blan|k lines |
|00001420| 77 69 74 68 69 6e 20 63 | 6f 6d 6d 61 6e 64 73 2c |within c|ommands,|
|00001430| 20 61 73 20 65 78 70 6c | 61 69 6e 65 64 20 73 68 | as expl|ained sh|
|00001440| 6f 72 74 6c 79 29 2e 0a | 0a 46 6f 72 20 73 74 72 |ortly)..|.For str|
|00001450| 69 6e 67 20 63 6f 6e 73 | 74 61 6e 74 73 2c 20 61 |ing cons|tants, a|
|00001460| 62 73 6f 6c 75 74 65 6c | 79 20 61 6e 79 20 70 72 |bsolutel|y any pr|
|00001470| 69 6e 74 69 6e 67 20 63 | 68 61 72 61 63 74 65 72 |inting c|haracter|
|00001480| 0a 69 73 20 6c 65 67 61 | 6c 20 62 65 74 77 65 65 |.is lega|l betwee|
|00001490| 6e 20 74 77 6f 20 63 6f | 6e 73 65 63 75 74 69 76 |n two co|nsecutiv|
|000014a0| 65 20 64 6f 75 62 6c 65 | 20 71 75 6f 74 65 73 2c |e double| quotes,|
|000014b0| 20 62 75 74 20 5c 42 69 | 62 54 65 58 5c 20 68 65 | but \Bi|bTeX\ he|
|000014c0| 72 65 0a 28 61 6e 64 20 | 6f 6e 6c 79 20 68 65 72 |re.(and |only her|
|000014d0| 65 29 20 74 72 65 61 74 | 73 20 75 70 70 65 72 2d |e) treat|s upper-|
|000014e0| 20 61 6e 64 20 6c 6f 77 | 65 72 2d 63 61 73 65 20 | and low|er-case |
|000014f0| 65 71 75 69 76 61 6c 65 | 6e 74 73 20 61 73 20 64 |equivale|nts as d|
|00001500| 69 66 66 65 72 65 6e 74 | 2e 0a 46 75 72 74 68 65 |ifferent|..Furthe|
|00001510| 72 6d 6f 72 65 2c 20 73 | 70 61 63 69 6e 67 20 7b |rmore, s|pacing {|
|00001520| 5c 65 6d 20 69 73 5c 2f | 7d 20 72 65 6c 65 76 61 |\em is\/|} releva|
|00001530| 6e 74 20 77 69 74 68 69 | 6e 20 61 20 73 74 72 69 |nt withi|n a stri|
|00001540| 6e 67 20 63 6f 6e 73 74 | 61 6e 74 2c 0a 61 6e 64 |ng const|ant,.and|
|00001550| 20 79 6f 75 20 6d 75 73 | 74 6e 27 74 20 73 70 6c | you mus|tn't spl|
|00001560| 69 74 20 61 20 73 74 72 | 69 6e 67 20 63 6f 6e 73 |it a str|ing cons|
|00001570| 74 61 6e 74 20 61 63 72 | 6f 73 73 20 6c 69 6e 65 |tant acr|oss line|
|00001580| 73 0a 28 74 68 61 74 20 | 69 73 2c 20 74 68 65 20 |s.(that |is, the |
|00001590| 62 65 67 69 6e 6e 69 6e | 67 20 61 6e 64 20 65 6e |beginnin|g and en|
|000015a0| 64 69 6e 67 20 64 6f 75 | 62 6c 65 20 71 75 6f 74 |ding dou|ble quot|
|000015b0| 65 73 20 6d 75 73 74 20 | 62 65 20 6f 6e 20 74 68 |es must |be on th|
|000015c0| 65 20 73 61 6d 65 20 6c | 69 6e 65 29 2e 0a 0a 56 |e same l|ine)...V|
|000015d0| 61 72 69 61 62 6c 65 20 | 61 6e 64 20 66 75 6e 63 |ariable |and func|
|000015e0| 74 69 6f 6e 20 6e 61 6d | 65 73 20 6d 61 79 20 6e |tion nam|es may n|
|000015f0| 6f 74 20 62 65 67 69 6e | 20 77 69 74 68 20 61 20 |ot begin| with a |
|00001600| 6e 75 6d 65 72 61 6c 20 | 61 6e 64 0a 6d 61 79 20 |numeral |and.may |
|00001610| 6e 6f 74 20 63 6f 6e 74 | 61 69 6e 20 61 6e 79 20 |not cont|ain any |
|00001620| 6f 66 20 74 68 65 20 74 | 65 6e 20 72 65 73 74 72 |of the t|en restr|
|00001630| 69 63 74 65 64 20 63 68 | 61 72 61 63 74 65 72 73 |icted ch|aracters|
|00001640| 0a 6f 6e 20 70 61 67 65 | 7e 31 34 33 20 6f 66 20 |.on page|~143 of |
|00001650| 74 68 65 20 5c 4c 61 54 | 65 58 5c 20 62 6f 6f 6b |the \LaT|eX\ book|
|00001660| 2c 0a 62 75 74 20 6d 61 | 79 20 6f 74 68 65 72 77 |,.but ma|y otherw|
|00001670| 69 73 65 20 63 6f 6e 74 | 61 69 6e 20 61 6e 79 20 |ise cont|ain any |
|00001680| 70 72 69 6e 74 69 6e 67 | 20 63 68 61 72 61 63 74 |printing| charact|
|00001690| 65 72 73 2e 0a 41 6c 73 | 6f 2c 20 5c 42 69 62 54 |ers..Als|o, \BibT|
|000016a0| 65 58 5c 20 63 6f 6e 73 | 69 64 65 72 73 20 75 70 |eX\ cons|iders up|
|000016b0| 70 65 72 2d 20 61 6e 64 | 20 6c 6f 77 65 72 2d 63 |per- and| lower-c|
|000016c0| 61 73 65 20 65 71 75 69 | 76 61 6c 65 6e 74 73 20 |ase equi|valents |
|000016d0| 74 6f 20 62 65 20 74 68 | 65 20 73 61 6d 65 2e 0a |to be th|e same..|
|000016e0| 0a 49 6e 74 65 67 65 72 | 73 20 61 6e 64 20 73 74 |.Integer|s and st|
|000016f0| 72 69 6e 67 73 20 61 72 | 65 20 74 68 65 20 6f 6e |rings ar|e the on|
|00001700| 6c 79 20 76 61 6c 75 65 | 20 74 79 70 65 73 20 66 |ly value| types f|
|00001710| 6f 72 20 63 6f 6e 73 74 | 61 6e 74 73 20 61 6e 64 |or const|ants and|
|00001720| 20 76 61 72 69 61 62 6c | 65 73 0a 28 62 6f 6f 6c | variabl|es.(bool|
|00001730| 65 61 6e 73 20 61 72 65 | 20 69 6d 70 6c 65 6d 65 |eans are| impleme|
|00001740| 6e 74 65 64 20 73 69 6d | 70 6c 79 20 61 73 20 30 |nted sim|ply as 0|
|00001750| 2d 6f 72 2d 31 20 69 6e | 74 65 67 65 72 73 29 2e |-or-1 in|tegers).|
|00001760| 0a 54 68 65 72 65 20 61 | 72 65 20 74 68 72 65 65 |.There a|re three|
|00001770| 20 6b 69 6e 64 73 20 6f | 66 20 76 61 72 69 61 62 | kinds o|f variab|
|00001780| 6c 65 73 3a 0a 5c 62 65 | 67 69 6e 7b 64 65 73 63 |les:.\be|gin{desc|
|00001790| 72 69 70 74 69 6f 6e 7d | 0a 0a 5c 69 74 65 6d 5b |ription}|..\item[|
|000017a0| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |global v|ariables|
|000017b0| 5c 68 66 69 6c 6c 5d 20 | 54 68 65 73 65 20 61 72 |\hfill] |These ar|
|000017c0| 65 20 65 69 74 68 65 72 | 20 69 6e 74 65 67 65 72 |e either| integer|
|000017d0| 2d 20 6f 72 20 73 74 72 | 69 6e 67 2d 76 61 6c 75 |- or str|ing-valu|
|000017e0| 65 64 2c 0a 64 65 63 6c | 61 72 65 64 20 75 73 69 |ed,.decl|ared usi|
|000017f0| 6e 67 20 61 6e 20 5c 68 | 62 6f 78 7b 5c 74 74 20 |ng an \h|box{\tt |
|00001800| 49 4e 54 45 47 45 52 53 | 7d 20 6f 72 20 5c 68 62 |INTEGERS|} or \hb|
|00001810| 6f 78 7b 5c 74 74 20 53 | 54 52 49 4e 47 53 7d 20 |ox{\tt S|TRINGS} |
|00001820| 63 6f 6d 6d 61 6e 64 2e | 0a 0a 5c 69 74 65 6d 5b |command.|..\item[|
|00001830| 65 6e 74 72 79 20 76 61 | 72 69 61 62 6c 65 73 5c |entry va|riables\|
|00001840| 68 66 69 6c 6c 5d 20 54 | 68 65 73 65 20 61 72 65 |hfill] T|hese are|
|00001850| 20 65 69 74 68 65 72 20 | 69 6e 74 65 67 65 72 2d | either |integer-|
|00001860| 20 6f 72 20 73 74 72 69 | 6e 67 2d 76 61 6c 75 65 | or stri|ng-value|
|00001870| 64 2c 0a 64 65 63 6c 61 | 72 65 64 20 75 73 69 6e |d,.decla|red usin|
|00001880| 67 20 74 68 65 20 5c 68 | 62 6f 78 7b 5c 74 74 20 |g the \h|box{\tt |
|00001890| 45 4e 54 52 59 7d 20 63 | 6f 6d 6d 61 6e 64 2e 0a |ENTRY} c|ommand..|
|000018a0| 45 61 63 68 20 68 61 73 | 20 61 20 76 61 6c 75 65 |Each has| a value|
|000018b0| 20 66 6f 72 20 65 61 63 | 68 20 65 6e 74 72 79 20 | for eac|h entry |
|000018c0| 6f 6e 20 74 68 65 20 6c | 69 73 74 0a 28 65 78 61 |on the l|ist.(exa|
|000018d0| 6d 70 6c 65 3a 20 61 20 | 76 61 72 69 61 62 6c 65 |mple: a |variable|
|000018e0| 20 5c 68 62 6f 78 7b 5c | 74 74 20 6c 61 62 65 6c | \hbox{\|tt label|
|000018f0| 7d 20 6d 69 67 68 74 20 | 73 74 6f 72 65 0a 74 68 |} might |store.th|
|00001900| 65 20 6c 61 62 65 6c 20 | 73 74 72 69 6e 67 20 79 |e label |string y|
|00001910| 6f 75 27 6c 6c 20 75 73 | 65 20 66 6f 72 20 74 68 |ou'll us|e for th|
|00001920| 65 20 65 6e 74 72 79 29 | 2e 0a 0a 5c 69 74 65 6d |e entry)|...\item|
|00001930| 5b 66 69 65 6c 64 73 5c | 68 66 69 6c 6c 5d 20 54 |[fields\|hfill] T|
|00001940| 68 65 73 65 20 61 72 65 | 20 73 74 72 69 6e 67 2d |hese are| string-|
|00001950| 76 61 6c 75 65 64 2c 20 | 72 65 61 64 2d 6f 6e 6c |valued, |read-onl|
|00001960| 79 20 76 61 72 69 61 62 | 6c 65 73 0a 74 68 61 74 |y variab|les.that|
|00001970| 20 73 74 6f 72 65 20 74 | 68 65 20 69 6e 66 6f 72 | store t|he infor|
|00001980| 6d 61 74 69 6f 6e 20 66 | 72 6f 6d 20 74 68 65 20 |mation f|rom the |
|00001990| 64 61 74 61 62 61 73 65 | 20 66 69 6c 65 3b 0a 74 |database| file;.t|
|000019a0| 68 65 69 72 20 76 61 6c | 75 65 73 20 61 72 65 20 |heir val|ues are |
|000019b0| 73 65 74 20 62 79 20 74 | 68 65 20 5c 68 62 6f 78 |set by t|he \hbox|
|000019c0| 7b 5c 74 74 20 52 45 41 | 44 7d 20 63 6f 6d 6d 61 |{\tt REA|D} comma|
|000019d0| 6e 64 2e 0a 41 73 20 77 | 69 74 68 20 65 6e 74 72 |nd..As w|ith entr|
|000019e0| 79 20 76 61 72 69 61 62 | 6c 65 73 2c 20 65 61 63 |y variab|les, eac|
|000019f0| 68 20 68 61 73 20 61 20 | 76 61 6c 75 65 20 66 6f |h has a |value fo|
|00001a00| 72 20 65 61 63 68 20 65 | 6e 74 72 79 2e 0a 5c 65 |r each e|ntry..\e|
|00001a10| 6e 64 7b 64 65 73 63 72 | 69 70 74 69 6f 6e 7d 0a |nd{descr|iption}.|
|00001a20| 0a 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 43 6f |..\subse|ction{Co|
|00001a30| 6d 6d 61 6e 64 73 7d 0a | 0a 54 68 65 72 65 20 61 |mmands}.|.There a|
|00001a40| 72 65 20 74 65 6e 20 73 | 74 79 6c 65 2d 66 69 6c |re ten s|tyle-fil|
|00001a50| 65 20 63 6f 6d 6d 61 6e | 64 73 3a 0a 46 69 76 65 |e comman|ds:.Five|
|00001a60| 20 28 5c 68 62 6f 78 7b | 5c 74 74 20 45 4e 54 52 | (\hbox{|\tt ENTR|
|00001a70| 59 7d 2c 20 5c 68 62 6f | 78 7b 5c 74 74 20 46 55 |Y}, \hbo|x{\tt FU|
|00001a80| 4e 43 54 49 4f 4e 7d 2c | 20 5c 68 62 6f 78 7b 5c |NCTION},| \hbox{\|
|00001a90| 74 74 20 49 4e 54 45 47 | 45 52 53 7d 2c 0a 5c 68 |tt INTEG|ERS},.\h|
|00001aa0| 62 6f 78 7b 5c 74 74 20 | 4d 41 43 52 4f 7d 2c 20 |box{\tt |MACRO}, |
|00001ab0| 61 6e 64 20 5c 68 62 6f | 78 7b 5c 74 74 20 53 54 |and \hbo|x{\tt ST|
|00001ac0| 52 49 4e 47 53 7d 29 0a | 64 65 63 6c 61 72 65 20 |RINGS}).|declare |
|00001ad0| 61 6e 64 20 64 65 66 69 | 6e 65 20 76 61 72 69 61 |and defi|ne varia|
|00001ae0| 62 6c 65 73 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |bles and| functio|
|00001af0| 6e 73 3b 0a 6f 6e 65 20 | 28 5c 68 62 6f 78 7b 5c |ns;.one |(\hbox{\|
|00001b00| 74 74 20 52 45 41 44 7d | 29 20 72 65 61 64 73 20 |tt READ}|) reads |
|00001b10| 69 6e 20 74 68 65 20 64 | 61 74 61 62 61 73 65 20 |in the d|atabase |
|00001b20| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 3b 0a 61 6e 64 |informat|ion;.and|
|00001b30| 20 66 6f 75 72 20 28 5c | 68 62 6f 78 7b 5c 74 74 | four (\|hbox{\tt|
|00001b40| 20 45 58 45 43 55 54 45 | 7d 2c 20 5c 68 62 6f 78 | EXECUTE|}, \hbox|
|00001b50| 7b 5c 74 74 20 49 54 45 | 52 41 54 45 7d 2c 20 5c |{\tt ITE|RATE}, \|
|00001b60| 68 62 6f 78 7b 5c 74 74 | 20 52 45 56 45 52 53 45 |hbox{\tt| REVERSE|
|00001b70| 7d 2c 0a 61 6e 64 20 5c | 68 62 6f 78 7b 5c 74 74 |},.and \|hbox{\tt|
|00001b80| 20 53 4f 52 54 7d 29 20 | 6d 61 6e 69 70 75 6c 61 | SORT}) |manipula|
|00001b90| 74 65 20 74 68 65 20 65 | 6e 74 72 69 65 73 20 61 |te the e|ntries a|
|00001ba0| 6e 64 20 70 72 6f 64 75 | 63 65 20 6f 75 74 70 75 |nd produ|ce outpu|
|00001bb0| 74 2e 0a 41 6c 74 68 6f | 75 67 68 20 74 68 65 20 |t..Altho|ugh the |
|00001bc0| 63 6f 6d 6d 61 6e 64 20 | 6e 61 6d 65 73 20 61 70 |command |names ap|
|00001bd0| 70 65 61 72 20 68 65 72 | 65 20 69 6e 20 75 70 70 |pear her|e in upp|
|00001be0| 65 72 20 63 61 73 65 2c | 0a 5c 42 69 62 54 65 58 |er case,|.\BibTeX|
|00001bf0| 5c 20 69 67 6e 6f 72 65 | 73 20 63 61 73 65 20 64 |\ ignore|s case d|
|00001c00| 69 66 66 65 72 65 6e 63 | 65 73 2e 0a 0a 53 6f 6d |ifferenc|es...Som|
|00001c10| 65 20 72 65 73 74 72 69 | 63 74 69 6f 6e 73 3a 0a |e restri|ctions:.|
|00001c20| 54 68 65 72 65 20 6d 75 | 73 74 20 62 65 20 65 78 |There mu|st be ex|
|00001c30| 61 63 74 6c 79 20 6f 6e | 65 20 5c 68 62 6f 78 7b |actly on|e \hbox{|
|00001c40| 5c 74 74 20 45 4e 54 52 | 59 7d 20 61 6e 64 20 6f |\tt ENTR|Y} and o|
|00001c50| 6e 65 20 5c 68 62 6f 78 | 7b 5c 74 74 20 52 45 41 |ne \hbox|{\tt REA|
|00001c60| 44 7d 20 63 6f 6d 6d 61 | 6e 64 3b 0a 74 68 65 20 |D} comma|nd;.the |
|00001c70| 5c 68 62 6f 78 7b 5c 74 | 74 20 45 4e 54 52 59 7d |\hbox{\t|t ENTRY}|
|00001c80| 20 63 6f 6d 6d 61 6e 64 | 2c 20 61 6c 6c 20 5c 68 | command|, all \h|
|00001c90| 62 6f 78 7b 5c 74 74 20 | 4d 41 43 52 4f 7d 20 63 |box{\tt |MACRO} c|
|00001ca0| 6f 6d 6d 61 6e 64 73 2c | 0a 61 6e 64 20 63 65 72 |ommands,|.and cer|
|00001cb0| 74 61 69 6e 20 5c 68 62 | 6f 78 7b 5c 74 74 20 46 |tain \hb|ox{\tt F|
|00001cc0| 55 4e 43 54 49 4f 4e 7d | 20 63 6f 6d 6d 61 6e 64 |UNCTION}| command|
|00001cd0| 73 0a 28 73 65 65 20 6e | 65 78 74 20 73 75 62 73 |s.(see n|ext subs|
|00001ce0| 65 63 74 69 6f 6e 27 73 | 20 64 65 73 63 72 69 70 |ection's| descrip|
|00001cf0| 74 69 6f 6e 20 6f 66 20 | 5c 68 62 6f 78 7b 5c 74 |tion of |\hbox{\t|
|00001d00| 74 20 63 61 6c 6c 2e 74 | 79 70 65 5c 24 7d 29 0a |t call.t|ype\$}).|
|00001d10| 6d 75 73 74 20 70 72 65 | 63 65 64 65 20 74 68 65 |must pre|cede the|
|00001d20| 20 5c 68 62 6f 78 7b 5c | 74 74 20 52 45 41 44 7d | \hbox{\|tt READ}|
|00001d30| 20 63 6f 6d 6d 61 6e 64 | 3b 0a 61 6e 64 20 74 68 | command|;.and th|
|00001d40| 65 20 5c 68 62 6f 78 7b | 5c 74 74 20 52 45 41 44 |e \hbox{|\tt READ|
|00001d50| 7d 20 63 6f 6d 6d 61 6e | 64 20 6d 75 73 74 20 70 |} comman|d must p|
|00001d60| 72 65 63 65 64 65 20 74 | 68 65 20 66 6f 75 72 20 |recede t|he four |
|00001d70| 74 68 61 74 0a 6d 61 6e | 69 70 75 6c 61 74 65 20 |that.man|ipulate |
|00001d80| 74 68 65 20 65 6e 74 72 | 69 65 73 20 61 6e 64 20 |the entr|ies and |
|00001d90| 70 72 6f 64 75 63 65 20 | 6f 75 74 70 75 74 2e 0a |produce |output..|
|00001da0| 0a 41 6c 73 6f 20 69 74 | 27 73 20 62 65 73 74 20 |.Also it|'s best |
|00001db0| 28 62 75 74 20 6e 6f 74 | 20 65 73 73 65 6e 74 69 |(but not| essenti|
|00001dc0| 61 6c 29 20 74 6f 20 6c | 65 61 76 65 20 61 74 20 |al) to l|eave at |
|00001dd0| 6c 65 61 73 74 20 6f 6e | 65 20 62 6c 61 6e 6b 20 |least on|e blank |
|00001de0| 6c 69 6e 65 0a 62 65 74 | 77 65 65 6e 20 63 6f 6d |line.bet|ween com|
|00001df0| 6d 61 6e 64 73 20 61 6e | 64 20 74 6f 20 6c 65 61 |mands an|d to lea|
|00001e00| 76 65 20 6e 6f 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |ve no bl|ank line|
|00001e10| 73 20 77 69 74 68 69 6e | 20 61 20 63 6f 6d 6d 61 |s within| a comma|
|00001e20| 6e 64 3b 0a 74 68 69 73 | 20 68 65 6c 70 73 20 5c |nd;.this| helps \|
|00001e30| 42 69 62 54 65 58 5c 20 | 72 65 63 6f 76 65 72 20 |BibTeX\ |recover |
|00001e40| 66 72 6f 6d 20 61 6e 79 | 20 73 79 6e 74 61 78 20 |from any| syntax |
|00001e50| 65 72 72 6f 72 73 20 79 | 6f 75 20 6d 61 6b 65 2e |errors y|ou make.|
|00001e60| 0a 0a 59 6f 75 20 6d 75 | 73 74 20 65 6e 63 6c 6f |..You mu|st enclo|
|00001e70| 73 65 20 65 61 63 68 20 | 61 72 67 75 6d 65 6e 74 |se each |argument|
|00001e80| 20 6f 66 20 65 76 65 72 | 79 20 63 6f 6d 6d 61 6e | of ever|y comman|
|00001e90| 64 20 69 6e 20 62 72 61 | 63 65 73 2e 0a 4c 6f 6f |d in bra|ces..Loo|
|00001ea0| 6b 20 61 74 20 74 68 65 | 20 73 74 61 6e 64 61 72 |k at the| standar|
|00001eb0| 64 2d 73 74 79 6c 65 20 | 64 6f 63 75 6d 65 6e 74 |d-style |document|
|00001ec0| 61 74 69 6f 6e 0a 66 6f | 72 20 73 79 6e 74 61 63 |ation.fo|r syntac|
|00001ed0| 74 69 63 20 69 73 73 75 | 65 73 20 6e 6f 74 20 64 |tic issu|es not d|
|00001ee0| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 69 73 |escribed| in this|
|00001ef0| 20 73 65 63 74 69 6f 6e | 2e 0a 48 65 72 65 20 61 | section|..Here a|
|00001f00| 72 65 20 74 68 65 20 74 | 65 6e 20 63 6f 6d 6d 61 |re the t|en comma|
|00001f10| 6e 64 73 3a 0a 5c 62 65 | 67 69 6e 7b 64 65 73 63 |nds:.\be|gin{desc|
|00001f20| 72 69 70 74 69 6f 6e 7d | 0a 0a 5c 69 74 65 6d 5b |ription}|..\item[|
|00001f30| 5c 68 62 6f 78 7b 5c 74 | 74 20 45 4e 54 52 59 7d |\hbox{\t|t ENTRY}|
|00001f40| 5c 68 66 69 6c 6c 5d 0a | 44 65 63 6c 61 72 65 73 |\hfill].|Declares|
|00001f50| 20 74 68 65 20 66 69 65 | 6c 64 73 20 61 6e 64 20 | the fie|lds and |
|00001f60| 65 6e 74 72 79 20 76 61 | 72 69 61 62 6c 65 73 2e |entry va|riables.|
|00001f70| 0a 49 74 20 68 61 73 20 | 74 68 72 65 65 20 61 72 |.It has |three ar|
|00001f80| 67 75 6d 65 6e 74 73 2c | 20 65 61 63 68 20 61 20 |guments,| each a |
|00001f90| 28 70 6f 73 73 69 62 6c | 79 20 65 6d 70 74 79 29 |(possibl|y empty)|
|00001fa0| 20 6c 69 73 74 20 6f 66 | 20 76 61 72 69 61 62 6c | list of| variabl|
|00001fb0| 65 20 6e 61 6d 65 73 2e | 0a 54 68 65 20 74 68 72 |e names.|.The thr|
|00001fc0| 65 65 20 6c 69 73 74 73 | 20 61 72 65 20 6f 66 3a |ee lists| are of:|
|00001fd0| 0a 66 69 65 6c 64 73 2c | 20 69 6e 74 65 67 65 72 |.fields,| integer|
|00001fe0| 20 65 6e 74 72 79 20 76 | 61 72 69 61 62 6c 65 73 | entry v|ariables|
|00001ff0| 2c 20 61 6e 64 20 73 74 | 72 69 6e 67 20 65 6e 74 |, and st|ring ent|
|00002000| 72 79 20 76 61 72 69 61 | 62 6c 65 73 2e 0a 54 68 |ry varia|bles..Th|
|00002010| 65 72 65 20 69 73 20 61 | 6e 20 61 64 64 69 74 69 |ere is a|n additi|
|00002020| 6f 6e 61 6c 20 66 69 65 | 6c 64 20 74 68 61 74 20 |onal fie|ld that |
|00002030| 5c 42 69 62 54 65 58 5c | 20 61 75 74 6f 6d 61 74 |\BibTeX\| automat|
|00002040| 69 63 61 6c 6c 79 0a 64 | 65 63 6c 61 72 65 73 2c |ically.d|eclares,|
|00002050| 20 5c 68 62 6f 78 7b 5c | 74 74 20 63 72 6f 73 73 | \hbox{\|tt cross|
|00002060| 72 65 66 7d 2c 20 75 73 | 65 64 20 66 6f 72 20 63 |ref}, us|ed for c|
|00002070| 72 6f 73 73 20 72 65 66 | 65 72 65 6e 63 69 6e 67 |ross ref|erencing|
|00002080| 2e 0a 41 6e 64 20 74 68 | 65 72 65 20 69 73 20 61 |..And th|ere is a|
|00002090| 6e 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 73 74 72 |n additi|onal str|
|000020a0| 69 6e 67 20 65 6e 74 72 | 79 20 76 61 72 69 61 62 |ing entr|y variab|
|000020b0| 6c 65 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |le autom|atically|
|000020c0| 20 64 65 63 6c 61 72 65 | 64 2c 0a 5c 68 62 6f 78 | declare|d,.\hbox|
|000020d0| 7b 5c 74 74 20 73 6f 72 | 74 2e 6b 65 79 5c 24 7d |{\tt sor|t.key\$}|
|000020e0| 2c 20 75 73 65 64 20 62 | 79 20 74 68 65 20 5c 68 |, used b|y the \h|
|000020f0| 62 6f 78 7b 5c 74 74 20 | 53 4f 52 54 7d 20 63 6f |box{\tt |SORT} co|
|00002100| 6d 6d 61 6e 64 2e 0a 45 | 61 63 68 20 6f 66 20 74 |mmand..E|ach of t|
|00002110| 68 65 73 65 20 76 61 72 | 69 61 62 6c 65 73 20 68 |hese var|iables h|
|00002120| 61 73 20 61 20 76 61 6c | 75 65 20 66 6f 72 20 65 |as a val|ue for e|
|00002130| 61 63 68 20 65 6e 74 72 | 79 20 6f 6e 20 74 68 65 |ach entr|y on the|
|00002140| 20 6c 69 73 74 2e 0a 0a | 5c 69 74 65 6d 5b 5c 68 | list...|\item[\h|
|00002150| 62 6f 78 7b 5c 74 74 20 | 45 58 45 43 55 54 45 7d |box{\tt |EXECUTE}|
|00002160| 5c 68 66 69 6c 6c 5d 0a | 45 78 65 63 75 74 65 73 |\hfill].|Executes|
|00002170| 20 61 20 73 69 6e 67 6c | 65 20 66 75 6e 63 74 69 | a singl|e functi|
|00002180| 6f 6e 2e 0a 49 74 20 68 | 61 73 20 6f 6e 65 20 61 |on..It h|as one a|
|00002190| 72 67 75 6d 65 6e 74 2c | 20 74 68 65 20 66 75 6e |rgument,| the fun|
|000021a0| 63 74 69 6f 6e 20 6e 61 | 6d 65 2e 0a 0a 5c 69 74 |ction na|me...\it|
|000021b0| 65 6d 5b 5c 68 62 6f 78 | 7b 5c 74 74 20 46 55 4e |em[\hbox|{\tt FUN|
|000021c0| 43 54 49 4f 4e 7d 5c 68 | 66 69 6c 6c 5d 0a 44 65 |CTION}\h|fill].De|
|000021d0| 66 69 6e 65 73 20 61 20 | 6e 65 77 20 66 75 6e 63 |fines a |new func|
|000021e0| 74 69 6f 6e 2e 0a 49 74 | 20 68 61 73 20 74 77 6f |tion..It| has two|
|000021f0| 20 61 72 67 75 6d 65 6e | 74 73 3b 20 74 68 65 20 | argumen|ts; the |
|00002200| 66 69 72 73 74 20 69 73 | 20 74 68 65 20 66 75 6e |first is| the fun|
|00002210| 63 74 69 6f 6e 27 73 20 | 6e 61 6d 65 20 61 6e 64 |ction's |name and|
|00002220| 20 74 68 65 0a 73 65 63 | 6f 6e 64 20 69 73 20 69 | the.sec|ond is i|
|00002230| 74 73 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 0a 59 |ts defin|ition..Y|
|00002240| 6f 75 20 6d 75 73 74 20 | 64 65 66 69 6e 65 20 61 |ou must |define a|
|00002250| 20 66 75 6e 63 74 69 6f | 6e 20 62 65 66 6f 72 65 | functio|n before|
|00002260| 20 75 73 69 6e 67 20 69 | 74 3b 0a 72 65 63 75 72 | using i|t;.recur|
|00002270| 73 69 76 65 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |sive fun|ctions a|
|00002280| 72 65 20 74 68 75 73 20 | 69 6c 6c 65 67 61 6c 2e |re thus |illegal.|
|00002290| 0a 0a 5c 69 74 65 6d 5b | 5c 68 62 6f 78 7b 5c 74 |..\item[|\hbox{\t|
|000022a0| 74 20 49 4e 54 45 47 45 | 52 53 7d 5c 68 66 69 6c |t INTEGE|RS}\hfil|
|000022b0| 6c 5d 0a 44 65 63 6c 61 | 72 65 73 20 67 6c 6f 62 |l].Decla|res glob|
|000022c0| 61 6c 20 69 6e 74 65 67 | 65 72 20 76 61 72 69 61 |al integ|er varia|
|000022d0| 62 6c 65 73 2e 0a 49 74 | 20 68 61 73 20 6f 6e 65 |bles..It| has one|
|000022e0| 20 61 72 67 75 6d 65 6e | 74 2c 20 61 20 6c 69 73 | argumen|t, a lis|
|000022f0| 74 20 6f 66 20 76 61 72 | 69 61 62 6c 65 20 6e 61 |t of var|iable na|
|00002300| 6d 65 73 2e 0a 54 68 65 | 72 65 20 61 72 65 20 74 |mes..The|re are t|
|00002310| 77 6f 20 73 75 63 68 20 | 61 75 74 6f 6d 61 74 69 |wo such |automati|
|00002320| 63 61 6c 6c 79 2d 64 65 | 63 6c 61 72 65 64 20 76 |cally-de|clared v|
|00002330| 61 72 69 61 62 6c 65 73 | 2c 0a 5c 68 62 6f 78 7b |ariables|,.\hbox{|
|00002340| 5c 74 74 20 65 6e 74 72 | 79 2e 6d 61 78 5c 24 7d |\tt entr|y.max\$}|
|00002350| 20 61 6e 64 20 5c 68 62 | 6f 78 7b 5c 74 74 20 67 | and \hb|ox{\tt g|
|00002360| 6c 6f 62 61 6c 2e 6d 61 | 78 5c 24 7d 2c 0a 75 73 |lobal.ma|x\$},.us|
|00002370| 65 64 20 66 6f 72 20 6c | 69 6d 69 74 69 6e 67 20 |ed for l|imiting |
|00002380| 74 68 65 20 6c 65 6e 67 | 74 68 73 20 6f 66 20 73 |the leng|ths of s|
|00002390| 74 72 69 6e 67 20 76 61 | 72 69 61 62 6c 65 73 2e |tring va|riables.|
|000023a0| 0a 59 6f 75 20 6d 61 79 | 20 68 61 76 65 20 61 6e |.You may| have an|
|000023b0| 79 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 73 |y number| of thes|
|000023c0| 65 20 63 6f 6d 6d 61 6e | 64 73 2c 20 62 75 74 20 |e comman|ds, but |
|000023d0| 61 20 76 61 72 69 61 62 | 6c 65 27 73 20 64 65 63 |a variab|le's dec|
|000023e0| 6c 61 72 61 74 69 6f 6e | 0a 6d 75 73 74 20 70 72 |laration|.must pr|
|000023f0| 65 63 65 64 65 20 69 74 | 73 20 75 73 65 2e 0a 0a |ecede it|s use...|
|00002400| 5c 69 74 65 6d 5b 5c 68 | 62 6f 78 7b 5c 74 74 20 |\item[\h|box{\tt |
|00002410| 49 54 45 52 41 54 45 7d | 5c 68 66 69 6c 6c 5d 0a |ITERATE}|\hfill].|
|00002420| 45 78 65 63 75 74 65 73 | 20 61 20 73 69 6e 67 6c |Executes| a singl|
|00002430| 65 20 66 75 6e 63 74 69 | 6f 6e 2c 20 6f 6e 63 65 |e functi|on, once|
|00002440| 0a 66 6f 72 20 65 61 63 | 68 20 65 6e 74 72 79 20 |.for eac|h entry |
|00002450| 69 6e 20 74 68 65 20 6c | 69 73 74 2c 20 69 6e 20 |in the l|ist, in |
|00002460| 74 68 65 20 6c 69 73 74 | 27 73 20 63 75 72 72 65 |the list|'s curre|
|00002470| 6e 74 20 6f 72 64 65 72 | 0a 28 69 6e 69 74 69 61 |nt order|.(initia|
|00002480| 6c 6c 79 20 74 68 65 20 | 6c 69 73 74 20 69 73 20 |lly the |list is |
|00002490| 69 6e 20 63 69 74 61 74 | 69 6f 6e 20 6f 72 64 65 |in citat|ion orde|
|000024a0| 72 2c 20 62 75 74 20 74 | 68 65 20 5c 68 62 6f 78 |r, but t|he \hbox|
|000024b0| 7b 5c 74 74 20 53 4f 52 | 54 7d 0a 63 6f 6d 6d 61 |{\tt SOR|T}.comma|
|000024c0| 6e 64 20 6d 61 79 20 63 | 68 61 6e 67 65 20 74 68 |nd may c|hange th|
|000024d0| 69 73 29 2e 0a 49 74 20 | 68 61 73 20 6f 6e 65 20 |is)..It |has one |
|000024e0| 61 72 67 75 6d 65 6e 74 | 2c 20 74 68 65 20 66 75 |argument|, the fu|
|000024f0| 6e 63 74 69 6f 6e 20 6e | 61 6d 65 2e 0a 0a 5c 69 |nction n|ame...\i|
|00002500| 74 65 6d 5b 5c 68 62 6f | 78 7b 5c 74 74 20 4d 41 |tem[\hbo|x{\tt MA|
|00002510| 43 52 4f 7d 5c 68 66 69 | 6c 6c 5d 0a 44 65 66 69 |CRO}\hfi|ll].Defi|
|00002520| 6e 65 73 20 61 20 73 74 | 72 69 6e 67 20 6d 61 63 |nes a st|ring mac|
|00002530| 72 6f 2e 0a 49 74 20 68 | 61 73 20 74 77 6f 20 61 |ro..It h|as two a|
|00002540| 72 67 75 6d 65 6e 74 73 | 3b 20 74 68 65 20 66 69 |rguments|; the fi|
|00002550| 72 73 74 20 69 73 20 74 | 68 65 20 6d 61 63 72 6f |rst is t|he macro|
|00002560| 27 73 20 6e 61 6d 65 2c | 20 77 68 69 63 68 20 69 |'s name,| which i|
|00002570| 73 20 74 72 65 61 74 65 | 64 20 6c 69 6b 65 0a 61 |s treate|d like.a|
|00002580| 6e 79 20 6f 74 68 65 72 | 20 76 61 72 69 61 62 6c |ny other| variabl|
|00002590| 65 20 6f 72 20 66 75 6e | 63 74 69 6f 6e 20 6e 61 |e or fun|ction na|
|000025a0| 6d 65 2c 0a 61 6e 64 20 | 74 68 65 20 73 65 63 6f |me,.and |the seco|
|000025b0| 6e 64 20 69 73 20 69 74 | 73 20 64 65 66 69 6e 69 |nd is it|s defini|
|000025c0| 74 69 6f 6e 2c 20 77 68 | 69 63 68 20 6d 75 73 74 |tion, wh|ich must|
|000025d0| 20 62 65 20 64 6f 75 62 | 6c 65 2d 71 75 6f 74 65 | be doub|le-quote|
|000025e0| 2d 64 65 6c 69 6d 69 74 | 65 64 2e 0a 59 6f 75 20 |-delimit|ed..You |
|000025f0| 6d 75 73 74 20 68 61 76 | 65 20 6f 6e 65 20 66 6f |must hav|e one fo|
|00002600| 72 20 65 61 63 68 20 74 | 68 72 65 65 2d 6c 65 74 |r each t|hree-let|
|00002610| 74 65 72 20 6d 6f 6e 74 | 68 20 61 62 62 72 65 76 |ter mont|h abbrev|
|00002620| 69 61 74 69 6f 6e 3b 0a | 69 6e 20 61 64 64 69 74 |iation;.|in addit|
|00002630| 69 6f 6e 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ion, you| should |
|00002640| 68 61 76 65 20 6f 6e 65 | 20 66 6f 72 20 63 6f 6d |have one| for com|
|00002650| 6d 6f 6e 20 6a 6f 75 72 | 6e 61 6c 20 6e 61 6d 65 |mon jour|nal name|
|00002660| 73 2e 0a 54 68 65 20 75 | 73 65 72 27 73 20 64 61 |s..The u|ser's da|
|00002670| 74 61 62 61 73 65 20 6d | 61 79 20 6f 76 65 72 72 |tabase m|ay overr|
|00002680| 69 64 65 20 61 6e 79 20 | 64 65 66 69 6e 69 74 69 |ide any |definiti|
|00002690| 6f 6e 20 79 6f 75 20 64 | 65 66 69 6e 65 20 75 73 |on you d|efine us|
|000026a0| 69 6e 67 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |ing this| command|
|000026b0| 2e 0a 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |..If you| want to|
|000026c0| 20 64 65 66 69 6e 65 20 | 61 20 73 74 72 69 6e 67 | define |a string|
|000026d0| 20 74 68 65 20 75 73 65 | 72 20 63 61 6e 27 74 20 | the use|r can't |
|000026e0| 74 6f 75 63 68 2c 0a 75 | 73 65 20 74 68 65 20 5c |touch,.u|se the \|
|000026f0| 68 62 6f 78 7b 5c 74 74 | 20 46 55 4e 43 54 49 4f |hbox{\tt| FUNCTIO|
|00002700| 4e 7d 20 63 6f 6d 6d 61 | 6e 64 2c 20 77 68 69 63 |N} comma|nd, whic|
|00002710| 68 20 68 61 73 20 61 20 | 63 6f 6d 70 61 74 69 62 |h has a |compatib|
|00002720| 6c 65 20 73 79 6e 74 61 | 78 2e 0a 0a 5c 69 74 65 |le synta|x...\ite|
|00002730| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 52 45 41 44 |m[\hbox{|\tt READ|
|00002740| 7d 5c 68 66 69 6c 6c 5d | 0a 44 72 65 64 67 65 73 |}\hfill]|.Dredges|
|00002750| 20 75 70 20 66 72 6f 6d | 20 74 68 65 20 64 61 74 | up from| the dat|
|00002760| 61 62 61 73 65 20 66 69 | 6c 65 0a 74 68 65 20 66 |abase fi|le.the f|
|00002770| 69 65 6c 64 20 76 61 6c | 75 65 73 20 66 6f 72 20 |ield val|ues for |
|00002780| 65 61 63 68 20 65 6e 74 | 72 79 20 69 6e 20 74 68 |each ent|ry in th|
|00002790| 65 20 6c 69 73 74 2e 0a | 49 74 20 68 61 73 20 6e |e list..|It has n|
|000027a0| 6f 20 61 72 67 75 6d 65 | 6e 74 73 2e 0a 49 66 20 |o argume|nts..If |
|000027b0| 61 20 64 61 74 61 62 61 | 73 65 20 65 6e 74 72 79 |a databa|se entry|
|000027c0| 20 64 6f 65 73 6e 27 74 | 20 68 61 76 65 20 61 20 | doesn't| have a |
|000027d0| 76 61 6c 75 65 20 66 6f | 72 20 61 20 66 69 65 6c |value fo|r a fiel|
|000027e0| 64 0a 28 61 6e 64 20 70 | 72 6f 62 61 62 6c 79 20 |d.(and p|robably |
|000027f0| 6e 6f 20 64 61 74 61 62 | 61 73 65 20 65 6e 74 72 |no datab|ase entr|
|00002800| 79 20 77 69 6c 6c 20 68 | 61 76 65 20 61 20 76 61 |y will h|ave a va|
|00002810| 6c 75 65 20 66 6f 72 20 | 65 76 65 72 79 20 66 69 |lue for |every fi|
|00002820| 65 6c 64 29 2c 0a 74 68 | 61 74 20 66 69 65 6c 64 |eld),.th|at field|
|00002830| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 6d 61 72 | variabl|e is mar|
|00002840| 6b 65 64 20 61 73 20 6d | 69 73 73 69 6e 67 20 66 |ked as m|issing f|
|00002850| 6f 72 20 74 68 65 20 65 | 6e 74 72 79 2e 0a 0a 5c |or the e|ntry...\|
|00002860| 69 74 65 6d 5b 5c 68 62 | 6f 78 7b 5c 74 74 20 52 |item[\hb|ox{\tt R|
|00002870| 45 56 45 52 53 45 7d 5c | 68 66 69 6c 6c 5d 0a 45 |EVERSE}\|hfill].E|
|00002880| 78 61 63 74 6c 79 20 74 | 68 65 20 73 61 6d 65 20 |xactly t|he same |
|00002890| 61 73 20 74 68 65 0a 5c | 68 62 6f 78 7b 5c 74 74 |as the.\|hbox{\tt|
|000028a0| 20 49 54 45 52 41 54 45 | 7d 20 63 6f 6d 6d 61 6e | ITERATE|} comman|
|000028b0| 64 20 65 78 63 65 70 74 | 20 74 68 61 74 20 69 74 |d except| that it|
|000028c0| 20 65 78 65 63 75 74 65 | 73 20 74 68 65 20 66 75 | execute|s the fu|
|000028d0| 6e 63 74 69 6f 6e 0a 6f | 6e 20 74 68 65 20 65 6e |nction.o|n the en|
|000028e0| 74 72 79 20 6c 69 73 74 | 20 69 6e 20 72 65 76 65 |try list| in reve|
|000028f0| 72 73 65 20 6f 72 64 65 | 72 2e 0a 0a 5c 69 74 65 |rse orde|r...\ite|
|00002900| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 53 4f 52 54 |m[\hbox{|\tt SORT|
|00002910| 7d 5c 68 66 69 6c 6c 5d | 0a 53 6f 72 74 73 20 74 |}\hfill]|.Sorts t|
|00002920| 68 65 20 65 6e 74 72 79 | 20 6c 69 73 74 20 75 73 |he entry| list us|
|00002930| 69 6e 67 0a 74 68 65 20 | 76 61 6c 75 65 73 20 6f |ing.the |values o|
|00002940| 66 20 74 68 65 20 73 74 | 72 69 6e 67 20 65 6e 74 |f the st|ring ent|
|00002950| 72 79 20 76 61 72 69 61 | 62 6c 65 20 5c 68 62 6f |ry varia|ble \hbo|
|00002960| 78 7b 5c 74 74 20 73 6f | 72 74 2e 6b 65 79 5c 24 |x{\tt so|rt.key\$|
|00002970| 7d 2e 0a 49 74 20 68 61 | 73 20 6e 6f 20 61 72 67 |}..It ha|s no arg|
|00002980| 75 6d 65 6e 74 73 2e 0a | 0a 5c 69 74 65 6d 5b 5c |uments..|.\item[\|
|00002990| 68 62 6f 78 7b 5c 74 74 | 20 53 54 52 49 4e 47 53 |hbox{\tt| STRINGS|
|000029a0| 7d 5c 68 66 69 6c 6c 5d | 0a 44 65 63 6c 61 72 65 |}\hfill]|.Declare|
|000029b0| 73 20 67 6c 6f 62 61 6c | 20 73 74 72 69 6e 67 20 |s global| string |
|000029c0| 76 61 72 69 61 62 6c 65 | 73 2e 0a 49 74 20 68 61 |variable|s..It ha|
|000029d0| 73 20 6f 6e 65 20 61 72 | 67 75 6d 65 6e 74 2c 20 |s one ar|gument, |
|000029e0| 61 20 6c 69 73 74 20 6f | 66 20 76 61 72 69 61 62 |a list o|f variab|
|000029f0| 6c 65 20 6e 61 6d 65 73 | 2e 0a 59 6f 75 20 6d 61 |le names|..You ma|
|00002a00| 79 20 68 61 76 65 20 61 | 6e 79 20 6e 75 6d 62 65 |y have a|ny numbe|
|00002a10| 72 20 6f 66 20 74 68 65 | 73 65 20 63 6f 6d 6d 61 |r of the|se comma|
|00002a20| 6e 64 73 2c 20 62 75 74 | 20 61 20 76 61 72 69 61 |nds, but| a varia|
|00002a30| 62 6c 65 27 73 20 64 65 | 63 6c 61 72 61 74 69 6f |ble's de|claratio|
|00002a40| 6e 0a 6d 75 73 74 20 70 | 72 65 63 65 64 65 20 69 |n.must p|recede i|
|00002a50| 74 73 20 75 73 65 2e 0a | 5c 65 6e 64 7b 64 65 73 |ts use..|\end{des|
|00002a60| 63 72 69 70 74 69 6f 6e | 7d 0a 0a 0a 5c 73 75 62 |cription|}...\sub|
|00002a70| 73 65 63 74 69 6f 6e 7b | 54 68 65 20 62 75 69 6c |section{|The buil|
|00002a80| 74 2d 69 6e 20 66 75 6e | 63 74 69 6f 6e 73 7d 0a |t-in fun|ctions}.|
|00002a90| 5c 6c 61 62 65 6c 7b 62 | 75 69 6c 74 2d 69 6e 2d |\label{b|uilt-in-|
|00002aa0| 66 6e 73 7d 0a 0a 42 65 | 66 6f 72 65 20 77 65 20 |fns}..Be|fore we |
|00002ab0| 67 65 74 20 74 6f 20 74 | 68 65 20 62 75 69 6c 74 |get to t|he built|
|00002ac0| 2d 69 6e 20 66 75 6e 63 | 74 69 6f 6e 73 2c 0a 61 |-in func|tions,.a|
|00002ad0| 20 66 65 77 20 77 6f 72 | 64 73 20 61 62 6f 75 74 | few wor|ds about|
|00002ae0| 20 73 6f 6d 65 20 6f 74 | 68 65 72 20 62 75 69 6c | some ot|her buil|
|00002af0| 74 2d 69 6e 20 6f 62 6a | 65 63 74 73 2e 0a 54 68 |t-in obj|ects..Th|
|00002b00| 65 72 65 20 69 73 20 6f | 6e 65 20 62 75 69 6c 74 |ere is o|ne built|
|00002b10| 2d 69 6e 20 73 74 72 69 | 6e 67 20 65 6e 74 72 79 |-in stri|ng entry|
|00002b20| 20 76 61 72 69 61 62 6c | 65 2c 20 5c 68 62 6f 78 | variabl|e, \hbox|
|00002b30| 7b 5c 74 74 20 73 6f 72 | 74 2e 6b 65 79 5c 24 7d |{\tt sor|t.key\$}|
|00002b40| 2c 0a 77 68 69 63 68 20 | 74 68 65 20 73 74 79 6c |,.which |the styl|
|00002b50| 65 20 70 72 6f 67 72 61 | 6d 20 6d 75 73 74 20 73 |e progra|m must s|
|00002b60| 65 74 20 69 66 20 74 68 | 65 20 73 74 79 6c 65 20 |et if th|e style |
|00002b70| 69 73 20 74 6f 20 64 6f | 20 73 6f 72 74 69 6e 67 |is to do| sorting|
|00002b80| 2e 0a 54 68 65 72 65 20 | 69 73 20 6f 6e 65 20 62 |..There |is one b|
|00002b90| 75 69 6c 74 2d 69 6e 20 | 66 69 65 6c 64 2c 20 5c |uilt-in |field, \|
|00002ba0| 68 62 6f 78 7b 5c 74 74 | 20 63 72 6f 73 73 72 65 |hbox{\tt| crossre|
|00002bb0| 66 7d 2c 0a 75 73 65 64 | 20 66 6f 72 20 74 68 65 |f},.used| for the|
|00002bc0| 20 63 72 6f 73 73 20 72 | 65 66 65 72 65 6e 63 69 | cross r|eferenci|
|00002bd0| 6e 67 20 66 65 61 74 75 | 72 65 0a 64 65 73 63 72 |ng featu|re.descr|
|00002be0| 69 62 65 64 20 69 6e 20 | 53 65 63 74 69 6f 6e 7e |ibed in |Section~|
|00002bf0| 34 2e 0a 41 6e 64 20 74 | 68 65 72 65 20 61 72 65 |4..And t|here are|
|00002c00| 20 74 77 6f 20 62 75 69 | 6c 74 2d 69 6e 20 69 6e | two bui|lt-in in|
|00002c10| 74 65 67 65 72 20 67 6c | 6f 62 61 6c 20 76 61 72 |teger gl|obal var|
|00002c20| 69 61 62 6c 65 73 2c 0a | 5c 68 62 6f 78 7b 5c 74 |iables,.|\hbox{\t|
|00002c30| 74 20 65 6e 74 72 79 2e | 6d 61 78 5c 24 7d 20 61 |t entry.|max\$} a|
|00002c40| 6e 64 20 5c 68 62 6f 78 | 7b 5c 74 74 20 67 6c 6f |nd \hbox|{\tt glo|
|00002c50| 62 61 6c 2e 6d 61 78 5c | 24 7d 2c 0a 77 68 69 63 |bal.max\|$},.whic|
|00002c60| 68 20 61 72 65 20 73 65 | 74 20 62 79 20 64 65 66 |h are se|t by def|
|00002c70| 61 75 6c 74 20 74 6f 20 | 73 6f 6d 65 20 69 6e 74 |ault to |some int|
|00002c80| 65 72 6e 61 6c 20 5c 42 | 69 62 54 65 58 5c 20 63 |ernal \B|ibTeX\ c|
|00002c90| 6f 6e 73 74 61 6e 74 73 | 3b 0a 79 6f 75 20 73 68 |onstants|;.you sh|
|00002ca0| 6f 75 6c 64 20 74 72 75 | 6e 63 61 74 65 20 73 74 |ould tru|ncate st|
|00002cb0| 72 69 6e 67 73 20 74 6f | 20 74 68 65 73 65 20 6c |rings to| these l|
|00002cc0| 65 6e 67 74 68 73 20 62 | 65 66 6f 72 65 0a 79 6f |engths b|efore.yo|
|00002cd0| 75 20 61 73 73 69 67 6e | 20 74 6f 20 73 74 72 69 |u assign| to stri|
|00002ce0| 6e 67 20 76 61 72 69 61 | 62 6c 65 73 2c 0a 73 6f |ng varia|bles,.so|
|00002cf0| 20 61 73 20 74 6f 20 6e | 6f 74 20 67 65 6e 65 72 | as to n|ot gener|
|00002d00| 61 74 65 20 61 6e 79 20 | 5c 42 69 62 54 65 58 5c |ate any |\BibTeX\|
|00002d10| 20 77 61 72 6e 69 6e 67 | 20 6d 65 73 73 61 67 65 | warning| message|
|00002d20| 73 2e 0a 0a 54 68 65 72 | 65 20 61 72 65 20 63 75 |s...Ther|e are cu|
|00002d30| 72 72 65 6e 74 6c 79 20 | 33 37 20 62 75 69 6c 74 |rrently |37 built|
|00002d40| 2d 69 6e 20 66 75 6e 63 | 74 69 6f 6e 73 2e 0a 45 |-in func|tions..E|
|00002d50| 76 65 72 79 20 62 75 69 | 6c 74 2d 69 6e 20 66 75 |very bui|lt-in fu|
|00002d60| 6e 63 74 69 6f 6e 20 77 | 69 74 68 20 61 20 6c 65 |nction w|ith a le|
|00002d70| 74 74 65 72 20 69 6e 20 | 69 74 73 20 6e 61 6d 65 |tter in |its name|
|00002d80| 20 65 6e 64 73 20 77 69 | 74 68 20 61 20 60 7b 5c | ends wi|th a `{\|
|00002d90| 74 74 20 5c 24 7d 27 24 | 5c 21 24 2e 0a 49 6e 20 |tt \$}'$|\!$..In |
|00002da0| 77 68 61 74 20 66 6f 6c | 6c 6f 77 73 2c 20 60 60 |what fol|lows, ``|
|00002db0| 66 69 72 73 74 27 27 24 | 5c 21 24 2c 20 60 60 73 |first''$|\!$, ``s|
|00002dc0| 65 63 6f 6e 64 27 27 24 | 5c 21 24 2c 0a 61 6e 64 |econd''$|\!$,.and|
|00002dd0| 20 73 6f 20 6f 6e 20 72 | 65 66 65 72 20 74 6f 20 | so on r|efer to |
|00002de0| 74 68 65 20 6f 72 64 65 | 72 20 70 6f 70 70 65 64 |the orde|r popped|
|00002df0| 2e 0a 41 20 60 60 6c 69 | 74 65 72 61 6c 27 27 20 |..A ``li|teral'' |
|00002e00| 69 73 20 61 6e 20 65 6c | 65 6d 65 6e 74 20 6f 6e |is an el|ement on|
|00002e10| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 61 6e 64 20 | the sta|ck, and |
|00002e20| 69 74 20 77 69 6c 6c 20 | 62 65 20 65 69 74 68 65 |it will |be eithe|
|00002e30| 72 0a 61 6e 20 69 6e 74 | 65 67 65 72 20 76 61 6c |r.an int|eger val|
|00002e40| 75 65 2c 20 61 20 73 74 | 72 69 6e 67 20 76 61 6c |ue, a st|ring val|
|00002e50| 75 65 2c 20 61 20 76 61 | 72 69 61 62 6c 65 20 6f |ue, a va|riable o|
|00002e60| 72 20 66 75 6e 63 74 69 | 6f 6e 20 6e 61 6d 65 2c |r functi|on name,|
|00002e70| 0a 6f 72 20 61 20 73 70 | 65 63 69 61 6c 20 76 61 |.or a sp|ecial va|
|00002e80| 6c 75 65 20 64 65 6e 6f | 74 69 6e 67 20 61 20 6d |lue deno|ting a m|
|00002e90| 69 73 73 69 6e 67 20 66 | 69 65 6c 64 2e 0a 49 66 |issing f|ield..If|
|00002ea0| 20 61 6e 79 20 70 6f 70 | 70 65 64 20 6c 69 74 65 | any pop|ped lite|
|00002eb0| 72 61 6c 20 68 61 73 20 | 61 6e 20 69 6e 63 6f 72 |ral has |an incor|
|00002ec0| 72 65 63 74 20 74 79 70 | 65 2c 20 5c 42 69 62 54 |rect typ|e, \BibT|
|00002ed0| 65 58 5c 20 63 6f 6d 70 | 6c 61 69 6e 73 20 61 6e |eX\ comp|lains an|
|00002ee0| 64 20 70 75 73 68 65 73 | 0a 74 68 65 20 69 6e 74 |d pushes|.the int|
|00002ef0| 65 67 65 72 20 30 20 6f | 72 20 74 68 65 20 6e 75 |eger 0 o|r the nu|
|00002f00| 6c 6c 20 73 74 72 69 6e | 67 2c 20 64 65 70 65 6e |ll strin|g, depen|
|00002f10| 64 69 6e 67 20 6f 6e 20 | 77 68 65 74 68 65 72 20 |ding on |whether |
|00002f20| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 0a 77 61 73 |the func|tion.was|
|00002f30| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 70 75 73 | suppose|d to pus|
|00002f40| 68 20 61 6e 20 69 6e 74 | 65 67 65 72 20 6f 72 20 |h an int|eger or |
|00002f50| 73 74 72 69 6e 67 2e 0a | 5c 62 65 67 69 6e 7b 64 |string..|\begin{d|
|00002f60| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 0a 5c 69 74 |escripti|on}..\it|
|00002f70| 65 6d 5b 5c 68 62 6f 78 | 7b 5c 74 74 20 3e 7d 5c |em[\hbox|{\tt >}\|
|00002f80| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 74 68 65 20 |hfill].P|ops the |
|00002f90| 74 6f 70 20 74 77 6f 20 | 28 69 6e 74 65 67 65 72 |top two |(integer|
|00002fa0| 29 20 6c 69 74 65 72 61 | 6c 73 2c 0a 63 6f 6d 70 |) litera|ls,.comp|
|00002fb0| 61 72 65 73 20 74 68 65 | 6d 2c 20 61 6e 64 20 70 |ares the|m, and p|
|00002fc0| 75 73 68 65 73 20 74 68 | 65 20 69 6e 74 65 67 65 |ushes th|e intege|
|00002fd0| 72 20 31 20 69 66 20 74 | 68 65 20 73 65 63 6f 6e |r 1 if t|he secon|
|00002fe0| 64 20 69 73 20 67 72 65 | 61 74 65 72 20 74 68 61 |d is gre|ater tha|
|00002ff0| 6e 0a 74 68 65 20 66 69 | 72 73 74 2c 20 30 20 6f |n.the fi|rst, 0 o|
|00003000| 74 68 65 72 77 69 73 65 | 2e 0a 0a 5c 69 74 65 6d |therwise|...\item|
|00003010| 5b 5c 68 62 6f 78 7b 5c | 74 74 20 3c 7d 5c 68 66 |[\hbox{\|tt <}\hf|
|00003020| 69 6c 6c 5d 0a 41 6e 61 | 6c 6f 67 6f 75 73 2e 0a |ill].Ana|logous..|
|00003030| 0a 5c 69 74 65 6d 5b 5c | 68 62 6f 78 7b 5c 74 74 |.\item[\|hbox{\tt|
|00003040| 20 3d 7d 5c 68 66 69 6c | 6c 5d 0a 50 6f 70 73 20 | =}\hfil|l].Pops |
|00003050| 74 68 65 20 74 6f 70 20 | 74 77 6f 20 28 62 6f 74 |the top |two (bot|
|00003060| 68 20 69 6e 74 65 67 65 | 72 20 6f 72 20 62 6f 74 |h intege|r or bot|
|00003070| 68 20 73 74 72 69 6e 67 | 29 20 6c 69 74 65 72 61 |h string|) litera|
|00003080| 6c 73 2c 0a 63 6f 6d 70 | 61 72 65 73 20 74 68 65 |ls,.comp|ares the|
|00003090| 6d 2c 0a 61 6e 64 20 70 | 75 73 68 65 73 20 74 68 |m,.and p|ushes th|
|000030a0| 65 20 69 6e 74 65 67 65 | 72 20 31 20 69 66 20 74 |e intege|r 1 if t|
|000030b0| 68 65 79 27 72 65 20 65 | 71 75 61 6c 2c 20 30 20 |hey're e|qual, 0 |
|000030c0| 6f 74 68 65 72 77 69 73 | 65 2e 0a 0a 5c 69 74 65 |otherwis|e...\ite|
|000030d0| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 2b 7d 5c 68 |m[\hbox{|\tt +}\h|
|000030e0| 66 69 6c 6c 5d 0a 50 6f | 70 73 20 74 68 65 20 74 |fill].Po|ps the t|
|000030f0| 6f 70 20 74 77 6f 20 28 | 69 6e 74 65 67 65 72 29 |op two (|integer)|
|00003100| 20 6c 69 74 65 72 61 6c | 73 20 61 6e 64 20 70 75 | literal|s and pu|
|00003110| 73 68 65 73 20 74 68 65 | 69 72 20 73 75 6d 2e 0a |shes the|ir sum..|
|00003120| 0a 5c 69 74 65 6d 5b 5c | 68 62 6f 78 7b 5c 74 74 |.\item[\|hbox{\tt|
|00003130| 20 2d 7d 5c 68 66 69 6c | 6c 5d 0a 50 6f 70 73 20 | -}\hfil|l].Pops |
|00003140| 74 68 65 20 74 6f 70 20 | 74 77 6f 20 28 69 6e 74 |the top |two (int|
|00003150| 65 67 65 72 29 20 6c 69 | 74 65 72 61 6c 73 20 61 |eger) li|terals a|
|00003160| 6e 64 20 70 75 73 68 65 | 73 20 74 68 65 69 72 20 |nd pushe|s their |
|00003170| 64 69 66 66 65 72 65 6e | 63 65 0a 28 74 68 65 20 |differen|ce.(the |
|00003180| 66 69 72 73 74 20 73 75 | 62 74 72 61 63 74 65 64 |first su|btracted|
|00003190| 20 66 72 6f 6d 20 74 68 | 65 20 73 65 63 6f 6e 64 | from th|e second|
|000031a0| 29 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |)...\ite|m[\hbox{|
|000031b0| 5c 74 74 20 2a 7d 5c 68 | 66 69 6c 6c 5d 0a 50 6f |\tt *}\h|fill].Po|
|000031c0| 70 73 20 74 68 65 20 74 | 6f 70 20 74 77 6f 20 28 |ps the t|op two (|
|000031d0| 73 74 72 69 6e 67 29 20 | 6c 69 74 65 72 61 6c 73 |string) |literals|
|000031e0| 2c 0a 63 6f 6e 63 61 74 | 65 6e 61 74 65 73 20 74 |,.concat|enates t|
|000031f0| 68 65 6d 20 28 69 6e 20 | 72 65 76 65 72 73 65 20 |hem (in |reverse |
|00003200| 6f 72 64 65 72 2c 20 74 | 68 61 74 20 69 73 2c 20 |order, t|hat is, |
|00003210| 74 68 65 20 6f 72 64 65 | 72 20 69 6e 20 77 68 69 |the orde|r in whi|
|00003220| 63 68 0a 70 75 73 68 65 | 64 29 2c 20 61 6e 64 20 |ch.pushe|d), and |
|00003230| 70 75 73 68 65 73 20 74 | 68 65 20 72 65 73 75 6c |pushes t|he resul|
|00003240| 74 69 6e 67 20 73 74 72 | 69 6e 67 2e 0a 0a 5c 69 |ting str|ing...\i|
|00003250| 74 65 6d 5b 5c 68 62 6f | 78 7b 5c 74 74 20 3a 3d |tem[\hbo|x{\tt :=|
|00003260| 7d 5c 68 66 69 6c 6c 5d | 0a 50 6f 70 73 20 74 68 |}\hfill]|.Pops th|
|00003270| 65 20 74 6f 70 20 74 77 | 6f 20 6c 69 74 65 72 61 |e top tw|o litera|
|00003280| 6c 73 20 61 6e 64 20 61 | 73 73 69 67 6e 73 0a 74 |ls and a|ssigns.t|
|00003290| 6f 20 74 68 65 20 66 69 | 72 73 74 20 28 77 68 69 |o the fi|rst (whi|
|000032a0| 63 68 20 6d 75 73 74 20 | 62 65 20 61 20 67 6c 6f |ch must |be a glo|
|000032b0| 62 61 6c 20 6f 72 20 65 | 6e 74 72 79 20 76 61 72 |bal or e|ntry var|
|000032c0| 69 61 62 6c 65 29 0a 74 | 68 65 20 76 61 6c 75 65 |iable).t|he value|
|000032d0| 20 6f 66 20 74 68 65 20 | 73 65 63 6f 6e 64 2e 0a | of the |second..|
|000032e0| 0a 5c 69 74 65 6d 5b 5c | 68 62 6f 78 7b 5c 74 74 |.\item[\|hbox{\tt|
|000032f0| 20 61 64 64 2e 70 65 72 | 69 6f 64 5c 24 7d 5c 68 | add.per|iod\$}\h|
|00003300| 66 69 6c 6c 5d 0a 50 6f | 70 73 20 74 68 65 20 74 |fill].Po|ps the t|
|00003310| 6f 70 20 28 73 74 72 69 | 6e 67 29 20 6c 69 74 65 |op (stri|ng) lite|
|00003320| 72 61 6c 2c 0a 61 64 64 | 73 20 61 20 60 7b 5c 74 |ral,.add|s a `{\t|
|00003330| 74 20 2e 7d 27 20 74 6f | 20 69 74 20 69 66 20 74 |t .}' to| it if t|
|00003340| 68 65 20 6c 61 73 74 20 | 6e 6f 6e 60 7b 5c 74 74 |he last |non`{\tt|
|00003350| 20 5c 7d 7d 27 20 63 68 | 61 72 61 63 74 65 72 0a | \}}' ch|aracter.|
|00003360| 69 73 6e 27 74 20 61 20 | 60 7b 5c 74 74 20 2e 7d |isn't a |`{\tt .}|
|00003370| 27 24 5c 21 24 2c 20 60 | 7b 5c 74 74 20 3f 7d 27 |'$\!$, `|{\tt ?}'|
|00003380| 2c 20 6f 72 20 60 7b 5c | 74 74 20 21 7d 27 24 5c |, or `{\|tt !}'$\|
|00003390| 21 24 2c 0a 61 6e 64 20 | 70 75 73 68 65 73 20 74 |!$,.and |pushes t|
|000033a0| 68 69 73 20 72 65 73 75 | 6c 74 69 6e 67 20 73 74 |his resu|lting st|
|000033b0| 72 69 6e 67 2e 0a 0a 5c | 69 74 65 6d 5b 5c 68 62 |ring...\|item[\hb|
|000033c0| 6f 78 7b 5c 74 74 20 63 | 61 6c 6c 2e 74 79 70 65 |ox{\tt c|all.type|
|000033d0| 5c 24 7d 5c 68 66 69 6c | 6c 5d 0a 45 78 65 63 75 |\$}\hfil|l].Execu|
|000033e0| 74 65 73 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |tes the |function|
|000033f0| 20 77 68 6f 73 65 20 6e | 61 6d 65 20 69 73 20 74 | whose n|ame is t|
|00003400| 68 65 20 65 6e 74 72 79 | 20 74 79 70 65 20 6f 66 |he entry| type of|
|00003410| 20 61 6e 20 65 6e 74 72 | 79 2e 0a 46 6f 72 20 65 | an entr|y..For e|
|00003420| 78 61 6d 70 6c 65 20 69 | 66 20 61 6e 20 65 6e 74 |xample i|f an ent|
|00003430| 72 79 20 69 73 20 6f 66 | 20 74 79 70 65 20 7b 5c |ry is of| type {\|
|00003440| 74 74 20 62 6f 6f 6b 7d | 2c 20 74 68 69 73 20 66 |tt book}|, this f|
|00003450| 75 6e 63 74 69 6f 6e 20 | 65 78 65 63 75 74 65 73 |unction |executes|
|00003460| 0a 74 68 65 20 7b 5c 74 | 74 20 62 6f 6f 6b 7d 20 |.the {\t|t book} |
|00003470| 66 75 6e 63 74 69 6f 6e | 2e 0a 57 68 65 6e 20 67 |function|..When g|
|00003480| 69 76 65 6e 20 61 73 20 | 61 6e 20 61 72 67 75 6d |iven as |an argum|
|00003490| 65 6e 74 20 74 6f 20 74 | 68 65 20 5c 68 62 6f 78 |ent to t|he \hbox|
|000034a0| 7b 5c 74 74 20 49 54 45 | 52 41 54 45 7d 20 63 6f |{\tt ITE|RATE} co|
|000034b0| 6d 6d 61 6e 64 2c 0a 5c | 68 62 6f 78 7b 5c 74 74 |mmand,.\|hbox{\tt|
|000034c0| 20 63 61 6c 6c 2e 74 79 | 70 65 5c 24 7d 20 61 63 | call.ty|pe\$} ac|
|000034d0| 74 75 61 6c 6c 79 20 70 | 72 6f 64 75 63 65 73 20 |tually p|roduces |
|000034e0| 74 68 65 20 6f 75 74 70 | 75 74 20 66 6f 72 20 74 |the outp|ut for t|
|000034f0| 68 65 20 65 6e 74 72 69 | 65 73 2e 0a 46 6f 72 20 |he entri|es..For |
|00003500| 61 6e 20 65 6e 74 72 79 | 20 77 69 74 68 20 61 6e |an entry| with an|
|00003510| 20 75 6e 6b 6e 6f 77 6e | 20 74 79 70 65 2c 0a 69 | unknown| type,.i|
|00003520| 74 20 65 78 65 63 75 74 | 65 73 20 74 68 65 20 66 |t execut|es the f|
|00003530| 75 6e 63 74 69 6f 6e 20 | 5c 68 62 6f 78 7b 5c 74 |unction |\hbox{\t|
|00003540| 74 20 64 65 66 61 75 6c | 74 2e 74 79 70 65 7d 2e |t defaul|t.type}.|
|00003550| 0a 54 68 75 73 20 79 6f | 75 20 73 68 6f 75 6c 64 |.Thus yo|u should|
|00003560| 20 64 65 66 69 6e 65 20 | 28 62 65 66 6f 72 65 20 | define |(before |
|00003570| 74 68 65 20 5c 68 62 6f | 78 7b 5c 74 74 20 52 45 |the \hbo|x{\tt RE|
|00003580| 41 44 7d 20 63 6f 6d 6d | 61 6e 64 29 20 6f 6e 65 |AD} comm|and) one|
|00003590| 20 66 75 6e 63 74 69 6f | 6e 0a 66 6f 72 20 65 61 | functio|n.for ea|
|000035a0| 63 68 20 73 74 61 6e 64 | 61 72 64 20 65 6e 74 72 |ch stand|ard entr|
|000035b0| 79 20 74 79 70 65 20 61 | 73 20 77 65 6c 6c 20 61 |y type a|s well a|
|000035c0| 73 20 61 20 5c 68 62 6f | 78 7b 5c 74 74 20 64 65 |s a \hbo|x{\tt de|
|000035d0| 66 61 75 6c 74 2e 74 79 | 70 65 7d 20 66 75 6e 63 |fault.ty|pe} func|
|000035e0| 74 69 6f 6e 2e 0a 0a 5c | 69 74 65 6d 5b 5c 68 62 |tion...\|item[\hb|
|000035f0| 6f 78 7b 5c 74 74 20 63 | 68 61 6e 67 65 2e 63 61 |ox{\tt c|hange.ca|
|00003600| 73 65 5c 24 7d 5c 68 66 | 69 6c 6c 5d 0a 50 6f 70 |se\$}\hf|ill].Pop|
|00003610| 73 20 74 68 65 20 74 6f | 70 20 74 77 6f 20 28 73 |s the to|p two (s|
|00003620| 74 72 69 6e 67 29 20 6c | 69 74 65 72 61 6c 73 3b |tring) l|iterals;|
|00003630| 0a 69 74 20 63 68 61 6e | 67 65 73 20 74 68 65 20 |.it chan|ges the |
|00003640| 63 61 73 65 20 6f 66 20 | 74 68 65 20 73 65 63 6f |case of |the seco|
|00003650| 6e 64 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |nd accor|ding to |
|00003660| 74 68 65 0a 73 70 65 63 | 69 66 69 63 61 74 69 6f |the.spec|ificatio|
|00003670| 6e 73 20 6f 66 20 74 68 | 65 20 66 69 72 73 74 2c |ns of th|e first,|
|00003680| 20 61 73 20 66 6f 6c 6c | 6f 77 73 2e 20 20 28 4e | as foll|ows. (N|
|00003690| 6f 74 65 3a 20 54 68 65 | 20 77 6f 72 64 20 60 6c |ote: The| word `l|
|000036a0| 65 74 74 65 72 73 27 20 | 69 6e 0a 74 68 65 20 6e |etters' |in.the n|
|000036b0| 65 78 74 20 73 65 6e 74 | 65 6e 63 65 20 72 65 66 |ext sent|ence ref|
|000036c0| 65 72 73 20 6f 6e 6c 79 | 20 74 6f 20 74 68 6f 73 |ers only| to thos|
|000036d0| 65 20 61 74 20 62 72 61 | 63 65 2d 6c 65 76 65 6c |e at bra|ce-level|
|000036e0| 7e 30 2c 20 74 68 65 20 | 74 6f 70 2d 6d 6f 73 74 |~0, the |top-most|
|000036f0| 0a 62 72 61 63 65 20 6c | 65 76 65 6c 3b 20 6e 6f |.brace l|evel; no|
|00003700| 20 6f 74 68 65 72 20 63 | 68 61 72 61 63 74 65 72 | other c|haracter|
|00003710| 73 20 61 72 65 20 63 68 | 61 6e 67 65 64 2c 20 65 |s are ch|anged, e|
|00003720| 78 63 65 70 74 20 70 65 | 72 68 61 70 73 20 66 6f |xcept pe|rhaps fo|
|00003730| 72 0a 60 60 73 70 65 63 | 69 61 6c 20 63 68 61 72 |r.``spec|ial char|
|00003740| 61 63 74 65 72 73 27 27 | 24 5c 21 24 2c 20 64 65 |acters''|$\!$, de|
|00003750| 73 63 72 69 62 65 64 20 | 69 6e 20 53 65 63 74 69 |scribed |in Secti|
|00003760| 6f 6e 7e 34 2e 29 0a 49 | 66 20 74 68 65 20 66 69 |on~4.).I|f the fi|
|00003770| 72 73 74 20 6c 69 74 65 | 72 61 6c 20 69 73 20 74 |rst lite|ral is t|
|00003780| 68 65 0a 73 74 72 69 6e | 67 7e 60 7b 5c 74 74 20 |he.strin|g~`{\tt |
|00003790| 74 7d 27 24 5c 21 24 2c | 20 69 74 20 63 6f 6e 76 |t}'$\!$,| it conv|
|000037a0| 65 72 74 73 20 74 6f 20 | 6c 6f 77 65 72 20 63 61 |erts to |lower ca|
|000037b0| 73 65 20 61 6c 6c 20 6c | 65 74 74 65 72 73 20 65 |se all l|etters e|
|000037c0| 78 63 65 70 74 20 74 68 | 65 20 76 65 72 79 0a 66 |xcept th|e very.f|
|000037d0| 69 72 73 74 20 63 68 61 | 72 61 63 74 65 72 20 69 |irst cha|racter i|
|000037e0| 6e 20 74 68 65 20 73 74 | 72 69 6e 67 2c 20 77 68 |n the st|ring, wh|
|000037f0| 69 63 68 20 69 74 20 6c | 65 61 76 65 73 20 61 6c |ich it l|eaves al|
|00003800| 6f 6e 65 2c 20 61 6e 64 | 20 65 78 63 65 70 74 20 |one, and| except |
|00003810| 74 68 65 0a 66 69 72 73 | 74 20 63 68 61 72 61 63 |the.firs|t charac|
|00003820| 74 65 72 20 66 6f 6c 6c | 6f 77 69 6e 67 20 61 6e |ter foll|owing an|
|00003830| 79 20 63 6f 6c 6f 6e 20 | 61 6e 64 20 74 68 65 6e |y colon |and then|
|00003840| 20 6e 6f 6e 6e 75 6c 6c | 20 77 68 69 74 65 20 73 | nonnull| white s|
|00003850| 70 61 63 65 2c 0a 77 68 | 69 63 68 20 69 74 20 61 |pace,.wh|ich it a|
|00003860| 6c 73 6f 20 6c 65 61 76 | 65 73 20 61 6c 6f 6e 65 |lso leav|es alone|
|00003870| 3b 20 69 66 20 69 74 27 | 73 20 74 68 65 20 73 74 |; if it'|s the st|
|00003880| 72 69 6e 67 7e 60 7b 5c | 74 74 20 6c 7d 27 24 5c |ring~`{\|tt l}'$\|
|00003890| 21 24 2c 20 69 74 20 63 | 6f 6e 76 65 72 74 73 20 |!$, it c|onverts |
|000038a0| 61 6c 6c 0a 6c 65 74 74 | 65 72 73 20 74 6f 20 6c |all.lett|ers to l|
|000038b0| 6f 77 65 72 20 63 61 73 | 65 3b 20 61 6e 64 20 69 |ower cas|e; and i|
|000038c0| 66 20 69 74 27 73 20 74 | 68 65 20 73 74 72 69 6e |f it's t|he strin|
|000038d0| 67 7e 60 7b 5c 74 74 20 | 75 7d 27 24 5c 21 24 2c |g~`{\tt |u}'$\!$,|
|000038e0| 20 69 74 20 63 6f 6e 76 | 65 72 74 73 20 61 6c 6c | it conv|erts all|
|000038f0| 0a 6c 65 74 74 65 72 73 | 20 74 6f 20 75 70 70 65 |.letters| to uppe|
|00003900| 72 20 63 61 73 65 2e 0a | 49 74 20 74 68 65 6e 20 |r case..|It then |
|00003910| 70 75 73 68 65 73 20 74 | 68 69 73 20 72 65 73 75 |pushes t|his resu|
|00003920| 6c 74 69 6e 67 20 73 74 | 72 69 6e 67 2e 20 20 49 |lting st|ring. I|
|00003930| 66 20 65 69 74 68 65 72 | 0a 74 79 70 65 20 69 73 |f either|.type is|
|00003940| 20 69 6e 63 6f 72 72 65 | 63 74 2c 20 69 74 20 63 | incorre|ct, it c|
|00003950| 6f 6d 70 6c 61 69 6e 73 | 20 61 6e 64 20 70 75 73 |omplains| and pus|
|00003960| 68 65 73 20 74 68 65 20 | 6e 75 6c 6c 20 73 74 72 |hes the |null str|
|00003970| 69 6e 67 3b 20 68 6f 77 | 65 76 65 72 2c 0a 69 66 |ing; how|ever,.if|
|00003980| 20 62 6f 74 68 20 74 79 | 70 65 73 20 61 72 65 20 | both ty|pes are |
|00003990| 63 6f 72 72 65 63 74 20 | 62 75 74 20 74 68 65 20 |correct |but the |
|000039a0| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 20 73 74 |specific|ation st|
|000039b0| 72 69 6e 67 20 28 69 2e | 65 2e 2c 20 74 68 65 0a |ring (i.|e., the.|
|000039c0| 66 69 72 73 74 20 73 74 | 72 69 6e 67 29 20 69 73 |first st|ring) is|
|000039d0| 6e 27 74 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 6c |n't one |of the l|
|000039e0| 65 67 61 6c 20 6f 6e 65 | 73 2c 20 69 74 20 6d 65 |egal one|s, it me|
|000039f0| 72 65 6c 79 20 70 75 73 | 68 65 73 20 74 68 65 20 |rely pus|hes the |
|00003a00| 73 65 63 6f 6e 64 0a 62 | 61 63 6b 20 6f 6e 74 6f |second.b|ack onto|
|00003a10| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 61 66 74 65 | the sta|ck, afte|
|00003a20| 72 20 63 6f 6d 70 6c 61 | 69 6e 69 6e 67 2e 20 20 |r compla|ining. |
|00003a30| 28 41 6e 6f 74 68 65 72 | 20 6e 6f 74 65 3a 20 49 |(Another| note: I|
|00003a40| 74 20 69 67 6e 6f 72 65 | 73 0a 63 61 73 65 20 64 |t ignore|s.case d|
|00003a50| 69 66 66 65 72 65 6e 63 | 65 73 20 69 6e 20 74 68 |ifferenc|es in th|
|00003a60| 65 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |e specif|ication |
|00003a70| 73 74 72 69 6e 67 3b 20 | 66 6f 72 20 65 78 61 6d |string; |for exam|
|00003a80| 70 6c 65 2c 20 74 68 65 | 20 73 74 72 69 6e 67 73 |ple, the| strings|
|00003a90| 0a 7b 5c 74 74 20 74 7d | 20 61 6e 64 20 7b 5c 74 |.{\tt t}| and {\t|
|00003aa0| 74 20 54 7d 20 61 72 65 | 20 65 71 75 69 76 61 6c |t T} are| equival|
|00003ab0| 65 6e 74 20 66 6f 72 20 | 74 68 65 20 70 75 72 70 |ent for |the purp|
|00003ac0| 6f 73 65 73 20 6f 66 20 | 74 68 69 73 20 62 75 69 |oses of |this bui|
|00003ad0| 6c 74 2d 69 6e 0a 66 75 | 6e 63 74 69 6f 6e 2e 29 |lt-in.fu|nction.)|
|00003ae0| 0a 0a 5c 69 74 65 6d 5b | 5c 68 62 6f 78 7b 5c 74 |..\item[|\hbox{\t|
|00003af0| 74 20 63 68 72 2e 74 6f | 2e 69 6e 74 5c 24 7d 5c |t chr.to|.int\$}\|
|00003b00| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 74 68 65 20 |hfill].P|ops the |
|00003b10| 74 6f 70 20 28 73 74 72 | 69 6e 67 29 20 6c 69 74 |top (str|ing) lit|
|00003b20| 65 72 61 6c 2c 0a 6d 61 | 6b 65 73 20 73 75 72 65 |eral,.ma|kes sure|
|00003b30| 20 69 74 27 73 20 61 20 | 73 69 6e 67 6c 65 20 63 | it's a |single c|
|00003b40| 68 61 72 61 63 74 65 72 | 2c 20 63 6f 6e 76 65 72 |haracter|, conver|
|00003b50| 74 73 20 69 74 20 74 6f | 20 74 68 65 0a 63 6f 72 |ts it to| the.cor|
|00003b60| 72 65 73 70 6f 6e 64 69 | 6e 67 20 41 53 43 49 49 |respondi|ng ASCII|
|00003b70| 20 69 6e 74 65 67 65 72 | 2c 20 61 6e 64 20 70 75 | integer|, and pu|
|00003b80| 73 68 65 73 20 74 68 69 | 73 20 69 6e 74 65 67 65 |shes thi|s intege|
|00003b90| 72 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |r...\ite|m[\hbox{|
|00003ba0| 5c 74 74 20 63 69 74 65 | 5c 24 7d 5c 68 66 69 6c |\tt cite|\$}\hfil|
|00003bb0| 6c 5d 0a 50 75 73 68 65 | 73 20 74 68 65 20 73 74 |l].Pushe|s the st|
|00003bc0| 72 69 6e 67 20 74 68 61 | 74 20 77 61 73 20 74 68 |ring tha|t was th|
|00003bd0| 65 0a 5c 68 62 6f 78 7b | 5c 76 65 72 62 7c 5c 63 |e.\hbox{|\verb|\c|
|00003be0| 69 74 65 7c 7d 2d 63 6f | 6d 6d 61 6e 64 20 61 72 |ite|}-co|mmand ar|
|00003bf0| 67 75 6d 65 6e 74 20 66 | 6f 72 20 74 68 69 73 20 |gument f|or this |
|00003c00| 65 6e 74 72 79 2e 0a 0a | 5c 69 74 65 6d 5b 5c 68 |entry...|\item[\h|
|00003c10| 62 6f 78 7b 5c 74 74 20 | 64 75 70 6c 69 63 61 74 |box{\tt |duplicat|
|00003c20| 65 5c 24 7d 5c 68 66 69 | 6c 6c 5d 0a 50 6f 70 73 |e\$}\hfi|ll].Pops|
|00003c30| 20 74 68 65 20 74 6f 70 | 20 6c 69 74 65 72 61 6c | the top| literal|
|00003c40| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 61 63 6b 20 | from th|e stack |
|00003c50| 61 6e 64 20 70 75 73 68 | 65 73 20 74 77 6f 20 63 |and push|es two c|
|00003c60| 6f 70 69 65 73 20 6f 66 | 20 69 74 2e 0a 0a 5c 69 |opies of| it...\i|
|00003c70| 74 65 6d 5b 5c 68 62 6f | 78 7b 5c 74 74 20 65 6d |tem[\hbo|x{\tt em|
|00003c80| 70 74 79 5c 24 7d 5c 68 | 66 69 6c 6c 5d 0a 50 6f |pty\$}\h|fill].Po|
|00003c90| 70 73 20 74 68 65 20 74 | 6f 70 20 6c 69 74 65 72 |ps the t|op liter|
|00003ca0| 61 6c 20 61 6e 64 20 70 | 75 73 68 65 73 0a 74 68 |al and p|ushes.th|
|00003cb0| 65 20 69 6e 74 65 67 65 | 72 20 31 20 69 66 20 69 |e intege|r 1 if i|
|00003cc0| 74 27 73 20 61 20 6d 69 | 73 73 69 6e 67 20 66 69 |t's a mi|ssing fi|
|00003cd0| 65 6c 64 20 6f 72 20 61 | 20 73 74 72 69 6e 67 20 |eld or a| string |
|00003ce0| 68 61 76 69 6e 67 20 6e | 6f 0a 6e 6f 6e 2d 77 68 |having n|o.non-wh|
|00003cf0| 69 74 65 2d 73 70 61 63 | 65 20 63 68 61 72 61 63 |ite-spac|e charac|
|00003d00| 74 65 72 73 2c 20 30 20 | 6f 74 68 65 72 77 69 73 |ters, 0 |otherwis|
|00003d10| 65 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |e...\ite|m[\hbox{|
|00003d20| 5c 74 74 20 66 6f 72 6d | 61 74 2e 6e 61 6d 65 5c |\tt form|at.name\|
|00003d30| 24 7d 5c 68 66 69 6c 6c | 5d 0a 50 6f 70 73 20 74 |$}\hfill|].Pops t|
|00003d40| 68 65 20 74 6f 70 20 74 | 68 72 65 65 20 6c 69 74 |he top t|hree lit|
|00003d50| 65 72 61 6c 73 0a 28 74 | 68 65 79 20 61 72 65 20 |erals.(t|hey are |
|00003d60| 61 20 73 74 72 69 6e 67 | 2c 20 61 6e 20 69 6e 74 |a string|, an int|
|00003d70| 65 67 65 72 2c 20 61 6e | 64 20 61 20 73 74 72 69 |eger, an|d a stri|
|00003d80| 6e 67 20 6c 69 74 65 72 | 61 6c 29 2e 0a 54 68 65 |ng liter|al)..The|
|00003d90| 20 6c 61 73 74 20 73 74 | 72 69 6e 67 20 6c 69 74 | last st|ring lit|
|00003da0| 65 72 61 6c 20 72 65 70 | 72 65 73 65 6e 74 73 20 |eral rep|resents |
|00003db0| 61 20 6e 61 6d 65 20 6c | 69 73 74 20 28 65 61 63 |a name l|ist (eac|
|00003dc0| 68 20 6e 61 6d 65 0a 63 | 6f 72 72 65 73 70 6f 6e |h name.c|orrespon|
|00003dd0| 64 69 6e 67 20 74 6f 20 | 61 20 70 65 72 73 6f 6e |ding to |a person|
|00003de0| 29 2c 20 74 68 65 20 69 | 6e 74 65 67 65 72 20 6c |), the i|nteger l|
|00003df0| 69 74 65 72 61 6c 20 73 | 70 65 63 69 66 69 65 73 |iteral s|pecifies|
|00003e00| 20 77 68 69 63 68 20 6e | 61 6d 65 0a 74 6f 20 70 | which n|ame.to p|
|00003e10| 69 63 6b 20 66 72 6f 6d | 20 74 68 69 73 20 6c 69 |ick from| this li|
|00003e20| 73 74 2c 20 61 6e 64 20 | 74 68 65 20 66 69 72 73 |st, and |the firs|
|00003e30| 74 20 73 74 72 69 6e 67 | 20 6c 69 74 65 72 61 6c |t string| literal|
|00003e40| 20 73 70 65 63 69 66 69 | 65 73 20 68 6f 77 20 74 | specifi|es how t|
|00003e50| 6f 0a 66 6f 72 6d 61 74 | 20 74 68 69 73 20 6e 61 |o.format| this na|
|00003e60| 6d 65 2c 20 61 73 20 65 | 78 70 6c 61 69 6e 65 64 |me, as e|xplained|
|00003e70| 20 69 6e 20 74 68 65 20 | 6e 65 78 74 20 73 75 62 | in the |next sub|
|00003e80| 73 65 63 74 69 6f 6e 2e | 0a 46 69 6e 61 6c 6c 79 |section.|.Finally|
|00003e90| 2c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |, this f|unction |
|00003ea0| 70 75 73 68 65 73 20 74 | 68 65 20 66 6f 72 6d 61 |pushes t|he forma|
|00003eb0| 74 74 65 64 20 6e 61 6d | 65 2e 0a 0a 5c 69 74 65 |tted nam|e...\ite|
|00003ec0| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 69 66 5c 24 |m[\hbox{|\tt if\$|
|00003ed0| 7d 5c 68 66 69 6c 6c 5d | 0a 50 6f 70 73 20 74 68 |}\hfill]|.Pops th|
|00003ee0| 65 20 74 6f 70 20 74 68 | 72 65 65 20 6c 69 74 65 |e top th|ree lite|
|00003ef0| 72 61 6c 73 20 28 74 68 | 65 79 0a 61 72 65 20 74 |rals (th|ey.are t|
|00003f00| 77 6f 20 66 75 6e 63 74 | 69 6f 6e 20 6c 69 74 65 |wo funct|ion lite|
|00003f10| 72 61 6c 73 20 61 6e 64 | 20 61 6e 20 69 6e 74 65 |rals and| an inte|
|00003f20| 67 65 72 20 6c 69 74 65 | 72 61 6c 2c 20 69 6e 20 |ger lite|ral, in |
|00003f30| 74 68 61 74 20 6f 72 64 | 65 72 29 3b 0a 69 66 20 |that ord|er);.if |
|00003f40| 74 68 65 20 69 6e 74 65 | 67 65 72 20 69 73 20 67 |the inte|ger is g|
|00003f50| 72 65 61 74 65 72 20 74 | 68 61 6e 20 30 2c 20 69 |reater t|han 0, i|
|00003f60| 74 20 65 78 65 63 75 74 | 65 73 20 74 68 65 20 73 |t execut|es the s|
|00003f70| 65 63 6f 6e 64 20 6c 69 | 74 65 72 61 6c 2c 0a 65 |econd li|teral,.e|
|00003f80| 6c 73 65 20 69 74 20 65 | 78 65 63 75 74 65 73 20 |lse it e|xecutes |
|00003f90| 74 68 65 20 66 69 72 73 | 74 2e 0a 0a 5c 69 74 65 |the firs|t...\ite|
|00003fa0| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 69 6e 74 2e |m[\hbox{|\tt int.|
|00003fb0| 74 6f 2e 63 68 72 5c 24 | 7d 5c 68 66 69 6c 6c 5d |to.chr\$|}\hfill]|
|00003fc0| 0a 50 6f 70 73 20 74 68 | 65 20 74 6f 70 20 28 69 |.Pops th|e top (i|
|00003fd0| 6e 74 65 67 65 72 29 20 | 6c 69 74 65 72 61 6c 2c |nteger) |literal,|
|00003fe0| 0a 69 6e 74 65 72 70 72 | 65 74 65 64 20 61 73 20 |.interpr|eted as |
|00003ff0| 74 68 65 20 41 53 43 49 | 49 20 69 6e 74 65 67 65 |the ASCI|I intege|
|00004000| 72 20 76 61 6c 75 65 20 | 6f 66 20 61 20 73 69 6e |r value |of a sin|
|00004010| 67 6c 65 20 63 68 61 72 | 61 63 74 65 72 2c 0a 63 |gle char|acter,.c|
|00004020| 6f 6e 76 65 72 74 73 20 | 69 74 20 74 6f 20 74 68 |onverts |it to th|
|00004030| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00004040| 73 69 6e 67 6c 65 2d 63 | 68 61 72 61 63 74 65 72 |single-c|haracter|
|00004050| 20 73 74 72 69 6e 67 2c | 20 61 6e 64 20 70 75 73 | string,| and pus|
|00004060| 68 65 73 0a 74 68 69 73 | 20 73 74 72 69 6e 67 2e |hes.this| string.|
|00004070| 0a 0a 5c 69 74 65 6d 5b | 5c 68 62 6f 78 7b 5c 74 |..\item[|\hbox{\t|
|00004080| 74 20 69 6e 74 2e 74 6f | 2e 73 74 72 5c 24 7d 5c |t int.to|.str\$}\|
|00004090| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 74 68 65 20 |hfill].P|ops the |
|000040a0| 74 6f 70 20 28 69 6e 74 | 65 67 65 72 29 20 6c 69 |top (int|eger) li|
|000040b0| 74 65 72 61 6c 2c 0a 63 | 6f 6e 76 65 72 74 73 20 |teral,.c|onverts |
|000040c0| 69 74 20 74 6f 20 69 74 | 73 20 28 75 6e 69 71 75 |it to it|s (uniqu|
|000040d0| 65 29 20 73 74 72 69 6e | 67 20 65 71 75 69 76 61 |e) strin|g equiva|
|000040e0| 6c 65 6e 74 2c 20 61 6e | 64 20 70 75 73 68 65 73 |lent, an|d pushes|
|000040f0| 20 74 68 69 73 20 73 74 | 72 69 6e 67 2e 0a 0a 5c | this st|ring...\|
|00004100| 69 74 65 6d 5b 5c 68 62 | 6f 78 7b 5c 74 74 20 6d |item[\hb|ox{\tt m|
|00004110| 69 73 73 69 6e 67 5c 24 | 7d 5c 68 66 69 6c 6c 5d |issing\$|}\hfill]|
|00004120| 0a 50 6f 70 73 20 74 68 | 65 20 74 6f 70 20 6c 69 |.Pops th|e top li|
|00004130| 74 65 72 61 6c 20 61 6e | 64 0a 70 75 73 68 65 73 |teral an|d.pushes|
|00004140| 20 74 68 65 20 69 6e 74 | 65 67 65 72 20 31 20 69 | the int|eger 1 i|
|00004150| 66 20 69 74 27 73 20 61 | 20 6d 69 73 73 69 6e 67 |f it's a| missing|
|00004160| 20 66 69 65 6c 64 2c 20 | 30 7e 6f 74 68 65 72 77 | field, |0~otherw|
|00004170| 69 73 65 2e 0a 0a 5c 69 | 74 65 6d 5b 5c 68 62 6f |ise...\i|tem[\hbo|
|00004180| 78 7b 5c 74 74 20 6e 65 | 77 6c 69 6e 65 5c 24 7d |x{\tt ne|wline\$}|
|00004190| 5c 68 66 69 6c 6c 5d 0a | 57 72 69 74 65 73 20 6f |\hfill].|Writes o|
|000041a0| 6e 74 6f 20 74 68 65 20 | 7b 5c 74 74 20 62 62 6c |nto the |{\tt bbl|
|000041b0| 7d 20 66 69 6c 65 0a 77 | 68 61 74 27 73 20 61 63 |} file.w|hat's ac|
|000041c0| 63 75 6d 75 6c 61 74 65 | 64 20 69 6e 20 74 68 65 |cumulate|d in the|
|000041d0| 20 6f 75 74 70 75 74 20 | 62 75 66 66 65 72 2e 0a | output |buffer..|
|000041e0| 49 74 20 77 72 69 74 65 | 73 20 61 20 62 6c 61 6e |It write|s a blan|
|000041f0| 6b 20 6c 69 6e 65 20 69 | 66 20 61 6e 64 20 6f 6e |k line i|f and on|
|00004200| 6c 79 20 69 66 20 74 68 | 65 20 6f 75 74 70 75 74 |ly if th|e output|
|00004210| 20 62 75 66 66 65 72 20 | 69 73 20 65 6d 70 74 79 | buffer |is empty|
|00004220| 2e 0a 53 69 6e 63 65 20 | 5c 68 62 6f 78 7b 5c 74 |..Since |\hbox{\t|
|00004230| 74 20 77 72 69 74 65 5c | 24 7d 20 64 6f 65 73 20 |t write\|$} does |
|00004240| 72 65 61 73 6f 6e 61 62 | 6c 65 20 6c 69 6e 65 20 |reasonab|le line |
|00004250| 62 72 65 61 6b 69 6e 67 | 2c 20 79 6f 75 20 73 68 |breaking|, you sh|
|00004260| 6f 75 6c 64 20 75 73 65 | 0a 74 68 69 73 20 66 75 |ould use|.this fu|
|00004270| 6e 63 74 69 6f 6e 20 6f | 6e 6c 79 20 77 68 65 6e |nction o|nly when|
|00004280| 20 79 6f 75 20 77 61 6e | 74 20 61 20 62 6c 61 6e | you wan|t a blan|
|00004290| 6b 20 6c 69 6e 65 20 6f | 72 20 61 6e 20 65 78 70 |k line o|r an exp|
|000042a0| 6c 69 63 69 74 20 6c 69 | 6e 65 20 62 72 65 61 6b |licit li|ne break|
|000042b0| 2e 0a 0a 5c 69 74 65 6d | 5b 5c 68 62 6f 78 7b 5c |...\item|[\hbox{\|
|000042c0| 74 74 20 6e 75 6d 2e 6e | 61 6d 65 73 5c 24 7d 5c |tt num.n|ames\$}\|
|000042d0| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 74 68 65 20 |hfill].P|ops the |
|000042e0| 74 6f 70 20 28 73 74 72 | 69 6e 67 29 20 6c 69 74 |top (str|ing) lit|
|000042f0| 65 72 61 6c 0a 61 6e 64 | 20 70 75 73 68 65 73 20 |eral.and| pushes |
|00004300| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6e 61 |the numb|er of na|
|00004310| 6d 65 73 20 74 68 65 20 | 73 74 72 69 6e 67 20 72 |mes the |string r|
|00004320| 65 70 72 65 73 65 6e 74 | 73 2d 2d 2d 6f 6e 65 20 |epresent|s---one |
|00004330| 70 6c 75 73 0a 74 68 65 | 20 6e 75 6d 62 65 72 20 |plus.the| number |
|00004340| 6f 66 20 6f 63 63 75 72 | 72 65 6e 63 65 73 20 6f |of occur|rences o|
|00004350| 66 20 74 68 65 20 73 75 | 62 73 74 72 69 6e 67 20 |f the su|bstring |
|00004360| 60 60 61 6e 64 27 27 20 | 28 69 67 6e 6f 72 69 6e |``and'' |(ignorin|
|00004370| 67 20 63 61 73 65 20 64 | 69 66 66 65 72 65 6e 63 |g case d|ifferenc|
|00004380| 65 73 29 0a 73 75 72 72 | 6f 75 6e 64 65 64 20 62 |es).surr|ounded b|
|00004390| 79 20 6e 6f 6e 6e 75 6c | 6c 20 77 68 69 74 65 2d |y nonnul|l white-|
|000043a0| 73 70 61 63 65 20 61 74 | 20 74 68 65 20 74 6f 70 |space at| the top|
|000043b0| 20 62 72 61 63 65 20 6c | 65 76 65 6c 2e 0a 0a 5c | brace l|evel...\|
|000043c0| 69 74 65 6d 5b 5c 68 62 | 6f 78 7b 5c 74 74 20 70 |item[\hb|ox{\tt p|
|000043d0| 6f 70 5c 24 7d 5c 68 66 | 69 6c 6c 5d 0a 50 6f 70 |op\$}\hf|ill].Pop|
|000043e0| 73 20 74 68 65 20 74 6f | 70 20 6f 66 20 74 68 65 |s the to|p of the|
|000043f0| 20 73 74 61 63 6b 20 62 | 75 74 0a 64 6f 65 73 6e | stack b|ut.doesn|
|00004400| 27 74 20 70 72 69 6e 74 | 20 69 74 3b 20 74 68 69 |'t print| it; thi|
|00004410| 73 20 67 65 74 73 20 72 | 69 64 20 6f 66 20 61 6e |s gets r|id of an|
|00004420| 20 75 6e 77 61 6e 74 65 | 64 20 73 74 61 63 6b 20 | unwante|d stack |
|00004430| 6c 69 74 65 72 61 6c 2e | 0a 0a 5c 69 74 65 6d 5b |literal.|..\item[|
|00004440| 5c 68 62 6f 78 7b 5c 74 | 74 20 70 72 65 61 6d 62 |\hbox{\t|t preamb|
|00004450| 6c 65 5c 24 7d 5c 68 66 | 69 6c 6c 5d 0a 50 75 73 |le\$}\hf|ill].Pus|
|00004460| 68 65 73 20 6f 6e 74 6f | 20 74 68 65 20 73 74 61 |hes onto| the sta|
|00004470| 63 6b 20 74 68 65 20 63 | 6f 6e 63 61 74 65 6e 61 |ck the c|oncatena|
|00004480| 74 69 6f 6e 20 6f 66 20 | 61 6c 6c 20 74 68 65 0a |tion of |all the.|
|00004490| 5c 68 62 6f 78 7b 5c 74 | 74 20 40 50 52 45 41 4d |\hbox{\t|t @PREAM|
|000044a0| 42 4c 45 7d 20 73 74 72 | 69 6e 67 73 20 72 65 61 |BLE} str|ings rea|
|000044b0| 64 20 66 72 6f 6d 20 74 | 68 65 20 64 61 74 61 62 |d from t|he datab|
|000044c0| 61 73 65 20 66 69 6c 65 | 73 2e 0a 0a 5c 69 74 65 |ase file|s...\ite|
|000044d0| 6d 5b 5c 68 62 6f 78 7b | 5c 74 74 20 70 75 72 69 |m[\hbox{|\tt puri|
|000044e0| 66 79 5c 24 7d 5c 68 66 | 69 6c 6c 5d 0a 50 6f 70 |fy\$}\hf|ill].Pop|
|000044f0| 73 20 74 68 65 20 74 6f | 70 20 28 73 74 72 69 6e |s the to|p (strin|
|00004500| 67 29 20 6c 69 74 65 72 | 61 6c 2c 0a 72 65 6d 6f |g) liter|al,.remo|
|00004510| 76 65 73 20 6e 6f 6e 61 | 6c 70 68 61 6e 75 6d 65 |ves nona|lphanume|
|00004520| 72 69 63 20 63 68 61 72 | 61 63 74 65 72 73 20 65 |ric char|acters e|
|00004530| 78 63 65 70 74 20 66 6f | 72 20 77 68 69 74 65 2d |xcept fo|r white-|
|00004540| 73 70 61 63 65 20 63 68 | 61 72 61 63 74 65 72 73 |space ch|aracters|
|00004550| 20 61 6e 64 0a 68 79 70 | 68 65 6e 73 20 61 6e 64 | and.hyp|hens and|
|00004560| 20 74 69 65 73 20 28 74 | 68 65 73 65 20 61 6c 6c | ties (t|hese all|
|00004570| 20 67 65 74 20 63 6f 6e | 76 65 72 74 65 64 20 74 | get con|verted t|
|00004580| 6f 20 61 20 73 70 61 63 | 65 29 2c 20 72 65 6d 6f |o a spac|e), remo|
|00004590| 76 65 73 0a 63 65 72 74 | 61 69 6e 20 61 6c 70 68 |ves.cert|ain alph|
|000045a0| 61 62 65 74 69 63 20 63 | 68 61 72 61 63 74 65 72 |abetic c|haracter|
|000045b0| 73 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 74 |s contai|ned in t|
|000045c0| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 73 65 71 75 65 |he contr|ol seque|
|000045d0| 6e 63 65 73 0a 61 73 73 | 6f 63 69 61 74 65 64 20 |nces.ass|ociated |
|000045e0| 77 69 74 68 20 61 20 60 | 60 73 70 65 63 69 61 6c |with a `|`special|
|000045f0| 20 63 68 61 72 61 63 74 | 65 72 27 27 24 5c 21 24 | charact|er''$\!$|
|00004600| 2c 20 61 6e 64 20 70 75 | 73 68 65 73 20 74 68 65 |, and pu|shes the|
|00004610| 20 72 65 73 75 6c 74 69 | 6e 67 20 73 74 72 69 6e | resulti|ng strin|
|00004620| 67 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |g...\ite|m[\hbox{|
|00004630| 5c 74 74 20 71 75 6f 74 | 65 5c 24 7d 5c 68 66 69 |\tt quot|e\$}\hfi|
|00004640| 6c 6c 5d 0a 50 75 73 68 | 65 73 20 74 68 65 20 73 |ll].Push|es the s|
|00004650| 74 72 69 6e 67 20 63 6f | 6e 73 69 73 74 69 6e 67 |tring co|nsisting|
|00004660| 20 6f 66 20 74 68 65 20 | 64 6f 75 62 6c 65 2d 71 | of the |double-q|
|00004670| 75 6f 74 65 20 63 68 61 | 72 61 63 74 65 72 2e 0a |uote cha|racter..|
|00004680| 0a 5c 69 74 65 6d 5b 5c | 68 62 6f 78 7b 5c 74 74 |.\item[\|hbox{\tt|
|00004690| 20 73 6b 69 70 5c 24 7d | 5c 68 66 69 6c 6c 5d 0a | skip\$}|\hfill].|
|000046a0| 49 73 20 61 20 6e 6f 2d | 6f 70 2e 0a 0a 5c 69 74 |Is a no-|op...\it|
|000046b0| 65 6d 5b 5c 68 62 6f 78 | 7b 5c 74 74 20 73 74 61 |em[\hbox|{\tt sta|
|000046c0| 63 6b 5c 24 7d 5c 68 66 | 69 6c 6c 5d 0a 50 6f 70 |ck\$}\hf|ill].Pop|
|000046d0| 73 20 61 6e 64 20 70 72 | 69 6e 74 73 20 74 68 65 |s and pr|ints the|
|000046e0| 20 77 68 6f 6c 65 20 73 | 74 61 63 6b 3b 0a 69 74 | whole s|tack;.it|
|000046f0| 27 73 20 6d 65 61 6e 74 | 20 74 6f 20 62 65 20 75 |'s meant| to be u|
|00004700| 73 65 64 20 66 6f 72 20 | 73 74 79 6c 65 20 64 65 |sed for |style de|
|00004710| 73 69 67 6e 65 72 73 20 | 77 68 69 6c 65 20 64 65 |signers |while de|
|00004720| 62 75 67 67 69 6e 67 2e | 0a 0a 5c 69 74 65 6d 5b |bugging.|..\item[|
|00004730| 5c 68 62 6f 78 7b 5c 74 | 74 20 73 75 62 73 74 72 |\hbox{\t|t substr|
|00004740| 69 6e 67 5c 24 7d 5c 68 | 66 69 6c 6c 5d 0a 50 6f |ing\$}\h|fill].Po|
|00004750| 70 73 20 74 68 65 20 74 | 6f 70 20 74 68 72 65 65 |ps the t|op three|
|00004760| 20 6c 69 74 65 72 61 6c | 73 0a 28 74 68 65 79 20 | literal|s.(they |
|00004770| 61 72 65 20 74 68 65 20 | 74 77 6f 20 69 6e 74 65 |are the |two inte|
|00004780| 67 65 72 73 20 6c 69 74 | 65 72 61 6c 73 20 7b 5c |gers lit|erals {\|
|00004790| 69 74 20 6c 65 6e 5c 2f | 7d 20 61 6e 64 20 7b 5c |it len\/|} and {\|
|000047a0| 69 74 20 73 74 61 72 74 | 7d 2c 20 61 6e 64 20 61 |it start|}, and a|
|000047b0| 0a 73 74 72 69 6e 67 20 | 6c 69 74 65 72 61 6c 2c |.string |literal,|
|000047c0| 20 69 6e 20 74 68 61 74 | 20 6f 72 64 65 72 29 2e | in that| order).|
|000047d0| 0a 49 74 20 70 75 73 68 | 65 73 20 74 68 65 20 73 |.It push|es the s|
|000047e0| 75 62 73 74 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |ubstring| of the |
|000047f0| 28 61 74 20 6d 6f 73 74 | 29 20 7b 5c 69 74 20 6c |(at most|) {\it l|
|00004800| 65 6e 5c 2f 7d 20 63 6f | 6e 73 65 63 75 74 69 76 |en\/} co|nsecutiv|
|00004810| 65 20 63 68 61 72 61 63 | 74 65 72 73 0a 73 74 61 |e charac|ters.sta|
|00004820| 72 74 69 6e 67 20 61 74 | 20 74 68 65 20 7b 5c 69 |rting at| the {\i|
|00004830| 74 20 73 74 61 72 74 5c | 2f 7d 74 68 20 63 68 61 |t start\|/}th cha|
|00004840| 72 61 63 74 65 72 20 28 | 61 73 73 75 6d 69 6e 67 |racter (|assuming|
|00004850| 20 31 2d 62 61 73 65 64 | 20 69 6e 64 65 78 69 6e | 1-based| indexin|
|00004860| 67 29 0a 69 66 20 7b 5c | 69 74 20 73 74 61 72 74 |g).if {\|it start|
|00004870| 5c 2f 7d 20 69 73 20 70 | 6f 73 69 74 69 76 65 2c |\/} is p|ositive,|
|00004880| 20 61 6e 64 20 65 6e 64 | 69 6e 67 20 61 74 20 74 | and end|ing at t|
|00004890| 68 65 20 24 2d 24 7b 5c | 69 74 20 73 74 61 72 74 |he $-${\|it start|
|000048a0| 5c 2f 7d 74 68 20 63 68 | 61 72 61 63 74 65 72 0a |\/}th ch|aracter.|
|000048b0| 66 72 6f 6d 20 74 68 65 | 20 65 6e 64 20 69 66 20 |from the| end if |
|000048c0| 7b 5c 69 74 20 73 74 61 | 72 74 5c 2f 7d 20 69 73 |{\it sta|rt\/} is|
|000048d0| 20 6e 65 67 61 74 69 76 | 65 0a 28 77 68 65 72 65 | negativ|e.(where|
|000048e0| 20 74 68 65 20 66 69 72 | 73 74 20 63 68 61 72 61 | the fir|st chara|
|000048f0| 63 74 65 72 20 66 72 6f | 6d 20 74 68 65 20 65 6e |cter fro|m the en|
|00004900| 64 20 69 73 20 74 68 65 | 20 6c 61 73 74 20 63 68 |d is the| last ch|
|00004910| 61 72 61 63 74 65 72 29 | 2e 0a 0a 5c 69 74 65 6d |aracter)|...\item|
|00004920| 5b 5c 68 62 6f 78 7b 5c | 74 74 20 73 77 61 70 5c |[\hbox{\|tt swap\|
|00004930| 24 7d 5c 68 66 69 6c 6c | 5d 0a 53 77 61 70 73 20 |$}\hfill|].Swaps |
|00004940| 74 68 65 20 74 6f 70 20 | 74 77 6f 20 6c 69 74 65 |the top |two lite|
|00004950| 72 61 6c 73 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |rals on |the stac|
|00004960| 6b 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |k...\ite|m[\hbox{|
|00004970| 5c 74 74 20 74 65 78 74 | 2e 6c 65 6e 67 74 68 5c |\tt text|.length\|
|00004980| 24 7d 5c 68 66 69 6c 6c | 5d 0a 50 6f 70 73 20 74 |$}\hfill|].Pops t|
|00004990| 68 65 20 74 6f 70 20 28 | 73 74 72 69 6e 67 29 20 |he top (|string) |
|000049a0| 6c 69 74 65 72 61 6c 2c | 0a 61 6e 64 20 70 75 73 |literal,|.and pus|
|000049b0| 68 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |hes the |number o|
|000049c0| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 69 74 20 |f charac|ters it |
|000049d0| 63 6f 6e 74 61 69 6e 73 | 2c 20 77 68 65 72 65 20 |contains|, where |
|000049e0| 61 6e 0a 61 63 63 65 6e | 74 65 64 20 63 68 61 72 |an.accen|ted char|
|000049f0| 61 63 74 65 72 20 28 6d | 6f 72 65 20 70 72 65 63 |acter (m|ore prec|
|00004a00| 69 73 65 6c 79 2c 20 61 | 20 60 60 73 70 65 63 69 |isely, a| ``speci|
|00004a10| 61 6c 20 63 68 61 72 61 | 63 74 65 72 27 27 24 5c |al chara|cter''$\|
|00004a20| 21 24 2c 0a 64 65 66 69 | 6e 65 64 20 69 6e 20 53 |!$,.defi|ned in S|
|00004a30| 65 63 74 69 6f 6e 7e 34 | 29 0a 63 6f 75 6e 74 73 |ection~4|).counts|
|00004a40| 20 61 73 20 61 20 73 69 | 6e 67 6c 65 20 63 68 61 | as a si|ngle cha|
|00004a50| 72 61 63 74 65 72 2c 20 | 65 76 65 6e 20 69 66 20 |racter, |even if |
|00004a60| 69 74 27 73 20 6d 69 73 | 73 69 6e 67 0a 69 74 73 |it's mis|sing.its|
|00004a70| 20 6d 61 74 63 68 69 6e | 67 20 72 69 67 68 74 20 | matchin|g right |
|00004a80| 62 72 61 63 65 2e 0a 0a | 5c 69 74 65 6d 5b 5c 68 |brace...|\item[\h|
|00004a90| 62 6f 78 7b 5c 74 74 20 | 74 65 78 74 2e 70 72 65 |box{\tt |text.pre|
|00004aa0| 66 69 78 5c 24 7d 5c 68 | 66 69 6c 6c 5d 0a 50 6f |fix\$}\h|fill].Po|
|00004ab0| 70 73 20 74 68 65 20 74 | 6f 70 20 74 77 6f 20 6c |ps the t|op two l|
|00004ac0| 69 74 65 72 61 6c 73 0a | 28 74 68 65 20 69 6e 74 |iterals.|(the int|
|00004ad0| 65 67 65 72 20 6c 69 74 | 65 72 61 6c 20 7b 5c 69 |eger lit|eral {\i|
|00004ae0| 74 20 6c 65 6e 5c 2f 7d | 20 61 6e 64 20 61 20 73 |t len\/}| and a s|
|00004af0| 74 72 69 6e 67 20 6c 69 | 74 65 72 61 6c 2c 20 69 |tring li|teral, i|
|00004b00| 6e 20 74 68 61 74 20 6f | 72 64 65 72 29 2e 0a 49 |n that o|rder)..I|
|00004b10| 74 20 70 75 73 68 20 74 | 68 65 20 73 75 62 73 74 |t push t|he subst|
|00004b20| 72 69 6e 67 20 6f 66 20 | 74 68 65 20 28 61 74 20 |ring of |the (at |
|00004b30| 6d 6f 73 74 29 20 7b 5c | 69 74 20 6c 65 6e 5c 2f |most) {\|it len\/|
|00004b40| 7d 20 63 6f 6e 73 65 63 | 75 74 69 76 65 0a 63 68 |} consec|utive.ch|
|00004b50| 61 72 61 63 74 65 72 73 | 20 73 74 61 72 74 69 6e |aracters| startin|
|00004b60| 67 20 66 72 6f 6d 20 74 | 68 65 20 62 65 67 69 6e |g from t|he begin|
|00004b70| 6e 69 6e 67 20 6f 66 20 | 74 68 65 20 73 74 72 69 |ning of |the stri|
|00004b80| 6e 67 2e 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 |ng. Thi|s functi|
|00004b90| 6f 6e 0a 69 73 20 73 69 | 6d 69 6c 61 72 20 74 6f |on.is si|milar to|
|00004ba0| 20 5c 68 62 6f 78 7b 5c | 74 74 20 73 75 62 73 74 | \hbox{\|tt subst|
|00004bb0| 72 69 6e 67 5c 24 7d 2c | 20 62 75 74 20 74 68 69 |ring\$},| but thi|
|00004bc0| 73 20 6f 6e 65 20 63 6f | 6e 73 69 64 65 72 73 0a |s one co|nsiders.|
|00004bd0| 61 20 60 60 73 70 65 63 | 69 61 6c 20 63 68 61 72 |a ``spec|ial char|
|00004be0| 61 63 74 65 72 27 27 24 | 5c 21 24 2c 20 65 76 65 |acter''$|\!$, eve|
|00004bf0| 6e 20 69 66 0a 69 74 27 | 73 20 6d 69 73 73 69 6e |n if.it'|s missin|
|00004c00| 67 20 69 74 73 20 6d 61 | 74 63 68 69 6e 67 20 72 |g its ma|tching r|
|00004c10| 69 67 68 74 2d 62 72 61 | 63 65 2c 20 74 6f 20 62 |ight-bra|ce, to b|
|00004c20| 65 20 61 20 73 69 6e 67 | 6c 65 20 63 68 61 72 61 |e a sing|le chara|
|00004c30| 63 74 65 72 0a 28 72 61 | 74 68 65 72 20 74 68 61 |cter.(ra|ther tha|
|00004c40| 6e 20 68 6f 77 65 76 65 | 72 20 6d 61 6e 79 20 41 |n howeve|r many A|
|00004c50| 53 43 49 49 20 63 68 61 | 72 61 63 74 65 72 73 20 |SCII cha|racters |
|00004c60| 69 74 20 61 63 74 75 61 | 6c 6c 79 20 63 6f 6d 70 |it actua|lly comp|
|00004c70| 72 69 73 65 73 29 2e 0a | 0a 5c 69 74 65 6d 5b 5c |rises)..|.\item[\|
|00004c80| 68 62 6f 78 7b 5c 74 74 | 20 74 6f 70 5c 24 7d 5c |hbox{\tt| top\$}\|
|00004c90| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 61 6e 64 20 |hfill].P|ops and |
|00004ca0| 70 72 69 6e 74 73 20 74 | 68 65 20 74 6f 70 20 6f |prints t|he top o|
|00004cb0| 66 20 74 68 65 20 73 74 | 61 63 6b 20 6f 6e 20 74 |f the st|ack on t|
|00004cc0| 68 65 20 74 65 72 6d 69 | 6e 61 6c 20 61 6e 64 20 |he termi|nal and |
|00004cd0| 6c 6f 67 20 66 69 6c 65 | 2e 0a 49 74 27 73 20 75 |log file|..It's u|
|00004ce0| 73 65 66 75 6c 20 66 6f | 72 20 64 65 62 75 67 67 |seful fo|r debugg|
|00004cf0| 69 6e 67 2e 0a 0a 5c 69 | 74 65 6d 5b 5c 68 62 6f |ing...\i|tem[\hbo|
|00004d00| 78 7b 5c 74 74 20 74 79 | 70 65 5c 24 7d 5c 68 66 |x{\tt ty|pe\$}\hf|
|00004d10| 69 6c 6c 5d 0a 50 75 73 | 68 65 73 20 74 68 65 20 |ill].Pus|hes the |
|00004d20| 63 75 72 72 65 6e 74 20 | 65 6e 74 72 79 27 73 20 |current |entry's |
|00004d30| 74 79 70 65 20 28 62 6f | 6f 6b 2c 20 61 72 74 69 |type (bo|ok, arti|
|00004d40| 63 6c 65 2c 20 65 74 63 | 2e 29 2c 0a 62 75 74 20 |cle, etc|.),.but |
|00004d50| 70 75 73 68 65 73 20 74 | 68 65 20 6e 75 6c 6c 20 |pushes t|he null |
|00004d60| 73 74 72 69 6e 67 0a 69 | 66 20 74 68 65 20 74 79 |string.i|f the ty|
|00004d70| 70 65 20 69 73 20 65 69 | 74 68 65 72 20 75 6e 6b |pe is ei|ther unk|
|00004d80| 6e 6f 77 6e 20 6f 72 20 | 75 6e 64 65 66 69 6e 65 |nown or |undefine|
|00004d90| 64 2e 0a 0a 5c 69 74 65 | 6d 5b 5c 68 62 6f 78 7b |d...\ite|m[\hbox{|
|00004da0| 5c 74 74 20 77 61 72 6e | 69 6e 67 5c 24 7d 5c 68 |\tt warn|ing\$}\h|
|00004db0| 66 69 6c 6c 5d 0a 50 6f | 70 73 20 74 68 65 20 74 |fill].Po|ps the t|
|00004dc0| 6f 70 20 28 73 74 72 69 | 6e 67 29 20 6c 69 74 65 |op (stri|ng) lite|
|00004dd0| 72 61 6c 0a 61 6e 64 20 | 70 72 69 6e 74 73 20 69 |ral.and |prints i|
|00004de0| 74 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 20 77 61 |t follow|ing a wa|
|00004df0| 72 6e 69 6e 67 20 6d 65 | 73 73 61 67 65 2e 0a 54 |rning me|ssage..T|
|00004e00| 68 69 73 20 61 6c 73 6f | 20 69 6e 63 72 65 6d 65 |his also| increme|
|00004e10| 6e 74 73 20 61 20 63 6f | 75 6e 74 20 6f 66 20 74 |nts a co|unt of t|
|00004e20| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 77 61 72 |he numbe|r of war|
|00004e30| 6e 69 6e 67 20 6d 65 73 | 73 61 67 65 73 20 69 73 |ning mes|sages is|
|00004e40| 73 75 65 64 2e 0a 0a 5c | 69 74 65 6d 5b 5c 68 62 |sued...\|item[\hb|
|00004e50| 6f 78 7b 5c 74 74 20 77 | 68 69 6c 65 5c 24 7d 5c |ox{\tt w|hile\$}\|
|00004e60| 68 66 69 6c 6c 5d 0a 50 | 6f 70 73 20 74 68 65 20 |hfill].P|ops the |
|00004e70| 74 6f 70 20 74 77 6f 20 | 28 66 75 6e 63 74 69 6f |top two |(functio|
|00004e80| 6e 29 20 6c 69 74 65 72 | 61 6c 73 2c 0a 61 6e 64 |n) liter|als,.and|
|00004e90| 20 6b 65 65 70 73 20 65 | 78 65 63 75 74 69 6e 67 | keeps e|xecuting|
|00004ea0| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 61 73 20 6c | the sec|ond as l|
|00004eb0| 6f 6e 67 20 61 73 20 74 | 68 65 20 28 69 6e 74 65 |ong as t|he (inte|
|00004ec0| 67 65 72 29 0a 6c 69 74 | 65 72 61 6c 20 6c 65 66 |ger).lit|eral lef|
|00004ed0| 74 20 6f 6e 20 74 68 65 | 20 73 74 61 63 6b 20 62 |t on the| stack b|
|00004ee0| 79 20 65 78 65 63 75 74 | 69 6e 67 20 74 68 65 20 |y execut|ing the |
|00004ef0| 66 69 72 73 74 20 69 73 | 20 67 72 65 61 74 65 72 |first is| greater|
|00004f00| 20 74 68 61 6e 20 30 2e | 0a 0a 5c 69 74 65 6d 5b | than 0.|..\item[|
|00004f10| 5c 68 62 6f 78 7b 5c 74 | 74 20 77 69 64 74 68 5c |\hbox{\t|t width\|
|00004f20| 24 7d 5c 68 66 69 6c 6c | 5d 0a 50 6f 70 73 20 74 |$}\hfill|].Pops t|
|00004f30| 68 65 20 74 6f 70 20 28 | 73 74 72 69 6e 67 29 20 |he top (|string) |
|00004f40| 6c 69 74 65 72 61 6c 0a | 61 6e 64 20 70 75 73 68 |literal.|and push|
|00004f50| 65 73 20 74 68 65 20 69 | 6e 74 65 67 65 72 20 74 |es the i|nteger t|
|00004f60| 68 61 74 20 72 65 70 72 | 65 73 65 6e 74 73 20 69 |hat repr|esents i|
|00004f70| 74 73 20 77 69 64 74 68 | 20 69 6e 20 73 6f 6d 65 |ts width| in some|
|00004f80| 20 72 65 6c 61 74 69 76 | 65 20 75 6e 69 74 73 0a | relativ|e units.|
|00004f90| 28 63 75 72 72 65 6e 74 | 6c 79 2c 20 68 75 6e 64 |(current|ly, hund|
|00004fa0| 72 65 64 74 68 73 20 6f | 66 20 61 20 70 6f 69 6e |redths o|f a poin|
|00004fb0| 74 2c 20 61 73 20 73 70 | 65 63 69 66 69 65 64 20 |t, as sp|ecified |
|00004fc0| 62 79 20 74 68 65 20 4a | 75 6e 65 20 31 39 38 37 |by the J|une 1987|
|00004fd0| 20 76 65 72 73 69 6f 6e | 0a 6f 66 20 74 68 65 20 | version|.of the |
|00004fe0| 24 63 6d 72 31 30 24 20 | 66 6f 6e 74 3b 20 74 68 |$cmr10$ |font; th|
|00004ff0| 65 20 6f 6e 6c 79 20 77 | 68 69 74 65 2d 73 70 61 |e only w|hite-spa|
|00005000| 63 65 20 63 68 61 72 61 | 63 74 65 72 20 77 69 74 |ce chara|cter wit|
|00005010| 68 20 6e 6f 6e 7a 65 72 | 6f 20 77 69 64 74 68 0a |h nonzer|o width.|
|00005020| 69 73 20 74 68 65 20 73 | 70 61 63 65 29 2e 0a 54 |is the s|pace)..T|
|00005030| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 61 6b |his func|tion tak|
|00005040| 65 73 20 74 68 65 20 6c | 69 74 65 72 61 6c 20 6c |es the l|iteral l|
|00005050| 69 74 65 72 61 6c 6c 79 | 3b 0a 74 68 61 74 20 69 |iterally|;.that i|
|00005060| 73 2c 20 69 74 20 61 73 | 73 75 6d 65 73 20 65 61 |s, it as|sumes ea|
|00005070| 63 68 20 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |ch chara|cter in |
|00005080| 74 68 65 20 73 74 72 69 | 6e 67 20 69 73 20 74 6f |the stri|ng is to|
|00005090| 20 62 65 20 70 72 69 6e | 74 65 64 20 61 73 0a 69 | be prin|ted as.i|
|000050a0| 73 2c 20 72 65 67 61 72 | 64 6c 65 73 73 20 6f 66 |s, regar|dless of|
|000050b0| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 63 68 61 | whether| the cha|
|000050c0| 72 61 63 74 65 72 20 68 | 61 73 20 61 20 73 70 65 |racter h|as a spe|
|000050d0| 63 69 61 6c 20 6d 65 61 | 6e 69 6e 67 20 74 6f 20 |cial mea|ning to |
|000050e0| 5c 54 65 58 2c 0a 65 78 | 63 65 70 74 20 74 68 61 |\TeX,.ex|cept tha|
|000050f0| 74 20 60 60 73 70 65 63 | 69 61 6c 20 63 68 61 72 |t ``spec|ial char|
|00005100| 61 63 74 65 72 73 27 27 | 20 28 65 76 65 6e 20 77 |acters''| (even w|
|00005110| 69 74 68 6f 75 74 20 74 | 68 65 69 72 20 72 69 67 |ithout t|heir rig|
|00005120| 68 74 20 62 72 61 63 65 | 73 29 20 61 72 65 0a 68 |ht brace|s) are.h|
|00005130| 61 6e 64 6c 65 64 20 73 | 70 65 63 69 61 6c 6c 79 |andled s|pecially|
|00005140| 2e 0a 54 68 69 73 20 69 | 73 20 6d 65 61 6e 74 20 |..This i|s meant |
|00005150| 74 6f 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 63 |to be us|ed for c|
|00005160| 6f 6d 70 61 72 69 6e 67 | 20 77 69 64 74 68 73 20 |omparing| widths |
|00005170| 6f 66 20 6c 61 62 65 6c | 20 73 74 72 69 6e 67 73 |of label| strings|
|00005180| 2e 0a 0a 5c 69 74 65 6d | 5b 5c 68 62 6f 78 7b 5c |...\item|[\hbox{\|
|00005190| 74 74 20 77 72 69 74 65 | 5c 24 7d 5c 68 66 69 6c |tt write|\$}\hfil|
|000051a0| 6c 5d 0a 50 6f 70 73 20 | 74 68 65 20 74 6f 70 20 |l].Pops |the top |
|000051b0| 28 73 74 72 69 6e 67 29 | 20 6c 69 74 65 72 61 6c |(string)| literal|
|000051c0| 0a 61 6e 64 20 77 72 69 | 74 65 73 20 69 74 20 6f |.and wri|tes it o|
|000051d0| 6e 20 74 68 65 20 6f 75 | 74 70 75 74 20 62 75 66 |n the ou|tput buf|
|000051e0| 66 65 72 20 28 77 68 69 | 63 68 20 77 69 6c 6c 20 |fer (whi|ch will |
|000051f0| 72 65 73 75 6c 74 20 69 | 6e 0a 73 74 75 66 66 20 |result i|n.stuff |
|00005200| 62 65 69 6e 67 20 77 72 | 69 74 74 65 6e 20 6f 6e |being wr|itten on|
|00005210| 74 6f 20 74 68 65 20 7b | 5c 74 74 20 62 62 6c 7d |to the {|\tt bbl}|
|00005220| 20 66 69 6c 65 20 77 68 | 65 6e 20 74 68 65 20 62 | file wh|en the b|
|00005230| 75 66 66 65 72 20 66 69 | 6c 6c 73 20 75 70 29 2e |uffer fi|lls up).|
|00005240| 0a 0a 5c 65 6e 64 7b 64 | 65 73 63 72 69 70 74 69 |..\end{d|escripti|
|00005250| 6f 6e 7d 0a 0a 4e 6f 74 | 65 20 74 68 61 74 20 74 |on}..Not|e that t|
|00005260| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 66 75 6e 63 |he built|-in func|
|00005270| 74 69 6f 6e 73 20 5c 68 | 62 6f 78 7b 5c 74 74 20 |tions \h|box{\tt |
|00005280| 77 68 69 6c 65 5c 24 7d | 20 61 6e 64 20 5c 68 62 |while\$}| and \hb|
|00005290| 6f 78 7b 5c 74 74 20 69 | 66 5c 24 7d 0a 72 65 71 |ox{\tt i|f\$}.req|
|000052a0| 75 69 72 65 20 74 77 6f | 20 66 75 6e 63 74 69 6f |uire two| functio|
|000052b0| 6e 20 6c 69 74 65 72 61 | 6c 73 20 6f 6e 20 74 68 |n litera|ls on th|
|000052c0| 65 20 73 74 61 63 6b 2e | 0a 59 6f 75 20 67 65 74 |e stack.|.You get|
|000052d0| 20 74 68 65 6d 20 74 68 | 65 72 65 20 65 69 74 68 | them th|ere eith|
|000052e0| 65 72 20 62 79 20 69 6d | 6d 65 64 69 61 74 65 6c |er by im|mediatel|
|000052f0| 79 20 70 72 65 63 65 64 | 69 6e 67 20 74 68 65 20 |y preced|ing the |
|00005300| 6e 61 6d 65 20 6f 66 20 | 61 20 66 75 6e 63 74 69 |name of |a functi|
|00005310| 6f 6e 0a 62 79 20 61 20 | 73 69 6e 67 6c 65 20 71 |on.by a |single q|
|00005320| 75 6f 74 65 2c 20 6f 72 | 2c 20 69 66 20 79 6f 75 |uote, or|, if you|
|00005330| 20 64 6f 6e 27 74 20 66 | 65 65 6c 20 6c 69 6b 65 | don't f|eel like|
|00005340| 20 64 65 66 69 6e 69 6e | 67 20 61 20 6e 65 77 20 | definin|g a new |
|00005350| 66 75 6e 63 74 69 6f 6e | 20 77 69 74 68 0a 74 68 |function| with.th|
|00005360| 65 20 5c 68 62 6f 78 7b | 5c 74 74 20 46 55 4e 43 |e \hbox{|\tt FUNC|
|00005370| 54 49 4f 4e 7d 20 63 6f | 6d 6d 61 6e 64 2c 0a 62 |TION} co|mmand,.b|
|00005380| 79 20 73 69 6d 70 6c 79 | 20 67 69 76 69 6e 67 20 |y simply| giving |
|00005390| 69 74 73 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 28 |its defi|nition (|
|000053a0| 74 68 61 74 20 69 73 2c | 20 67 69 76 69 6e 67 20 |that is,| giving |
|000053b0| 77 68 61 74 20 77 6f 75 | 6c 64 20 62 65 20 74 68 |what wou|ld be th|
|000053c0| 65 20 73 65 63 6f 6e 64 | 0a 61 72 67 75 6d 65 6e |e second|.argumen|
|000053d0| 74 20 74 6f 20 74 68 65 | 20 5c 68 62 6f 78 7b 5c |t to the| \hbox{\|
|000053e0| 74 74 20 46 55 4e 43 54 | 49 4f 4e 7d 20 63 6f 6d |tt FUNCT|ION} com|
|000053f0| 6d 61 6e 64 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |mand, in|cluding |
|00005400| 74 68 65 20 73 75 72 72 | 6f 75 6e 64 69 6e 67 20 |the surr|ounding |
|00005410| 62 72 61 63 65 73 29 2e | 0a 46 6f 72 20 65 78 61 |braces).|.For exa|
|00005420| 6d 70 6c 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |mple the| followi|
|00005430| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 20 66 72 61 67 |ng funct|ion frag|
|00005440| 6d 65 6e 74 20 61 70 70 | 65 6e 64 73 20 74 68 65 |ment app|ends the|
|00005450| 20 63 68 61 72 61 63 74 | 65 72 20 60 7b 5c 74 74 | charact|er `{\tt|
|00005460| 20 61 7d 27 0a 69 66 20 | 74 68 65 20 73 74 72 69 | a}'.if |the stri|
|00005470| 6e 67 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |ng varia|ble name|
|00005480| 64 20 5c 68 62 6f 78 7b | 5c 74 74 20 6c 61 62 65 |d \hbox{|\tt labe|
|00005490| 6c 7d 20 69 73 20 6e 6f | 6e 6e 75 6c 6c 3a 0a 5c |l} is no|nnull:.\|
|000054a0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000054b0| 20 20 20 20 2e 20 20 2e | 20 20 2e 0a 20 20 20 20 | . .| .. |
|000054c0| 6c 61 62 65 6c 20 22 22 | 20 3d 0a 20 20 20 20 20 |label ""| =. |
|000054d0| 20 27 73 6b 69 70 24 0a | 20 20 20 20 20 20 7b 20 | 'skip$.| { |
|000054e0| 6c 61 62 65 6c 20 22 61 | 22 20 2a 20 27 6c 61 62 |label "a|" * 'lab|
|000054f0| 65 6c 20 3a 3d 20 7d 0a | 20 20 20 20 69 66 24 0a |el := }.| if$.|
|00005500| 20 20 20 20 2e 20 20 2e | 20 20 2e 0a 5c 65 6e 64 | . .| ..\end|
|00005510| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 41 20 66 75 6e |{verbati|m}.A fun|
|00005520| 63 74 69 6f 6e 20 77 68 | 6f 73 65 20 6e 61 6d 65 |ction wh|ose name|
|00005530| 20 79 6f 75 20 71 75 6f | 74 65 20 6e 65 65 64 6e | you quo|te needn|
|00005540| 27 74 20 62 65 20 62 75 | 69 6c 74 20 69 6e 0a 6c |'t be bu|ilt in.l|
|00005550| 69 6b 65 20 5c 68 62 6f | 78 7b 5c 74 74 20 73 6b |ike \hbo|x{\tt sk|
|00005560| 69 70 5c 24 7d 20 61 62 | 6f 76 65 2d 2d 2d 69 74 |ip\$} ab|ove---it|
|00005570| 20 6d 61 79 2c 20 66 6f | 72 20 65 78 61 6d 70 6c | may, fo|r exampl|
|00005580| 65 2c 0a 62 65 20 61 20 | 66 69 65 6c 64 20 6e 61 |e,.be a |field na|
|00005590| 6d 65 20 6f 72 20 61 20 | 66 75 6e 63 74 69 6f 6e |me or a |function|
|000055a0| 20 79 6f 75 27 76 65 20 | 64 65 66 69 6e 65 64 20 | you've |defined |
|000055b0| 65 61 72 6c 69 65 72 2e | 0a 0a 0a 5c 73 75 62 73 |earlier.|...\subs|
|000055c0| 65 63 74 69 6f 6e 7b 4e | 61 6d 65 20 66 6f 72 6d |ection{N|ame form|
|000055d0| 61 74 74 69 6e 67 7d 0a | 0a 57 68 61 74 27 73 20 |atting}.|.What's |
|000055e0| 69 6e 20 61 20 6e 61 6d | 65 3f 0a 53 65 63 74 69 |in a nam|e?.Secti|
|000055f0| 6f 6e 7e 34 20 70 72 65 | 74 74 79 20 6d 75 63 68 |on~4 pre|tty much|
|00005600| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 69 73 2e | describ|es this.|
|00005610| 0a 45 61 63 68 20 6e 61 | 6d 65 20 63 6f 6e 73 69 |.Each na|me consi|
|00005620| 73 74 73 20 6f 66 20 66 | 6f 75 72 20 70 61 72 74 |sts of f|our part|
|00005630| 73 3a 20 46 69 72 73 74 | 2c 20 76 6f 6e 2c 20 4c |s: First|, von, L|
|00005640| 61 73 74 2c 20 61 6e 64 | 20 4a 72 3b 0a 65 61 63 |ast, and| Jr;.eac|
|00005650| 68 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 61 20 |h consis|ts of a |
|00005660| 6c 69 73 74 20 6f 66 20 | 6e 61 6d 65 2d 74 6f 6b |list of |name-tok|
|00005670| 65 6e 73 2c 0a 61 6e 64 | 20 61 6e 79 20 6c 69 73 |ens,.and| any lis|
|00005680| 74 20 62 75 74 20 4c 61 | 73 74 27 73 20 6d 61 79 |t but La|st's may|
|00005690| 20 62 65 20 65 6d 70 74 | 79 20 66 6f 72 20 61 20 | be empt|y for a |
|000056a0| 6e 6f 6e 6e 75 6c 6c 20 | 6e 61 6d 65 2e 0a 54 68 |nonnull |name..Th|
|000056b0| 69 73 20 73 75 62 73 65 | 63 74 69 6f 6e 20 64 65 |is subse|ction de|
|000056c0| 73 63 72 69 62 65 73 20 | 74 68 65 20 66 6f 72 6d |scribes |the form|
|000056d0| 61 74 20 73 74 72 69 6e | 67 20 79 6f 75 20 6d 75 |at strin|g you mu|
|000056e0| 73 74 20 73 75 70 70 6c | 79 20 74 6f 0a 74 68 65 |st suppl|y to.the|
|000056f0| 20 62 75 69 6c 74 2d 69 | 6e 20 66 75 6e 63 74 69 | built-i|n functi|
|00005700| 6f 6e 20 5c 68 62 6f 78 | 7b 5c 74 74 20 66 6f 72 |on \hbox|{\tt for|
|00005710| 6d 61 74 2e 6e 61 6d 65 | 5c 24 7d 2e 0a 0a 4c 65 |mat.name|\$}...Le|
|00005720| 74 27 73 20 6c 6f 6f 6b | 20 61 74 20 61 6e 20 65 |t's look| at an e|
|00005730| 78 61 6d 70 6c 65 20 6f | 66 20 61 20 76 65 72 79 |xample o|f a very|
|00005740| 20 6c 6f 6e 67 20 6e 61 | 6d 65 2e 0a 53 75 70 70 | long na|me..Supp|
|00005750| 6f 73 65 20 61 20 64 61 | 74 61 62 61 73 65 20 65 |ose a da|tabase e|
|00005760| 6e 74 72 79 7e 5c 63 69 | 74 65 7b 70 72 69 6d 65 |ntry~\ci|te{prime|
|00005770| 2d 6e 75 6d 62 65 72 2d | 74 68 65 6f 72 65 6d 7d |-number-|theorem}|
|00005780| 20 68 61 73 20 74 68 65 | 20 66 69 65 6c 64 0a 5c | has the| field.\|
|00005790| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000057a0| 20 20 61 75 74 68 6f 72 | 20 3d 20 22 43 68 61 72 | author| = "Char|
|000057b0| 6c 65 73 20 4c 6f 75 69 | 73 20 58 61 76 69 65 72 |les Loui|s Xavier|
|000057c0| 20 4a 6f 73 65 70 68 20 | 64 65 20 6c 61 20 56 61 | Joseph |de la Va|
|000057d0| 6c 6c 7b 5c 27 65 7d 65 | 20 50 6f 75 73 73 69 6e |ll{\'e}e| Poussin|
|000057e0| 22 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |".\end{v|erbatim}|
|000057f0| 0a 61 6e 64 20 73 75 70 | 70 6f 73 65 20 79 6f 75 |.and sup|pose you|
|00005800| 20 77 61 6e 74 20 74 68 | 69 73 20 66 6f 72 6d 61 | want th|is forma|
|00005810| 74 74 65 64 20 60 60 6c | 61 73 74 20 6e 61 6d 65 |tted ``l|ast name|
|00005820| 20 63 6f 6d 6d 61 20 69 | 6e 69 74 69 61 6c 73 27 | comma i|nitials'|
|00005830| 27 24 5c 21 24 2e 0a 49 | 66 20 79 6f 75 20 75 73 |'$\!$..I|f you us|
|00005840| 65 20 74 68 65 20 66 6f | 72 6d 61 74 20 73 74 72 |e the fo|rmat str|
|00005850| 69 6e 67 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |ing.\beg|in{verba|
|00005860| 74 69 6d 7d 0a 20 20 20 | 20 22 7b 76 76 7e 7d 7b |tim}. | "{vv~}{|
|00005870| 6c 6c 7d 7b 2c 20 6a 6a | 7d 7b 2c 20 66 7d 3f 22 |ll}{, jj|}{, f}?"|
|00005880| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00005890| 5c 42 69 62 54 65 58 5c | 20 77 69 6c 6c 20 70 72 |\BibTeX\| will pr|
|000058a0| 6f 64 75 63 65 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |oduce.\b|egin{ver|
|000058b0| 62 61 74 69 6d 7d 0a 20 | 20 20 20 64 65 7e 6c 61 |batim}. | de~la|
|000058c0| 20 56 61 6c 6c 7b 5c 27 | 65 7d 65 7e 50 6f 75 73 | Vall{\'|e}e~Pous|
|000058d0| 73 69 6e 2c 20 43 2e 7e | 4c 2e 20 58 2e 7e 4a 3f |sin, C.~|L. X.~J?|
|000058e0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|000058f0| 61 73 20 74 68 65 20 66 | 6f 72 6d 61 74 74 65 64 |as the f|ormatted|
|00005900| 20 73 74 72 69 6e 67 2e | 0a 0a 4c 65 74 27 73 20 | string.|..Let's |
|00005910| 6c 6f 6f 6b 20 61 74 20 | 74 68 69 73 20 65 78 61 |look at |this exa|
|00005920| 6d 70 6c 65 20 69 6e 20 | 64 65 74 61 69 6c 2e 0a |mple in |detail..|
|00005930| 54 68 65 72 65 20 61 72 | 65 20 66 6f 75 72 20 62 |There ar|e four b|
|00005940| 72 61 63 65 2d 6c 65 76 | 65 6c 7e 31 20 7b 5c 65 |race-lev|el~1 {\e|
|00005950| 6d 20 70 69 65 63 65 73 | 5c 2f 7d 20 74 6f 20 74 |m pieces|\/} to t|
|00005960| 68 69 73 20 66 6f 72 6d | 61 74 20 73 74 72 69 6e |his form|at strin|
|00005970| 67 2c 0a 6f 6e 65 20 66 | 6f 72 20 65 61 63 68 20 |g,.one f|or each |
|00005980| 70 61 72 74 20 6f 66 20 | 61 20 6e 61 6d 65 2e 0a |part of |a name..|
|00005990| 49 66 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |If the c|orrespon|
|000059a0| 64 69 6e 67 20 70 61 72 | 74 20 6f 66 20 61 20 6e |ding par|t of a n|
|000059b0| 61 6d 65 20 69 73 6e 27 | 74 20 70 72 65 73 65 6e |ame isn'|t presen|
|000059c0| 74 20 28 74 68 65 20 4a | 72 20 70 61 72 74 20 66 |t (the J|r part f|
|000059d0| 6f 72 20 74 68 69 73 20 | 6e 61 6d 65 29 2c 0a 65 |or this |name),.e|
|000059e0| 76 65 72 79 74 68 69 6e | 67 20 69 6e 20 74 68 61 |verythin|g in tha|
|000059f0| 74 20 70 69 65 63 65 20 | 69 73 20 69 67 6e 6f 72 |t piece |is ignor|
|00005a00| 65 64 2e 0a 41 6e 79 74 | 68 69 6e 67 20 61 74 20 |ed..Anyt|hing at |
|00005a10| 62 72 61 63 65 2d 6c 65 | 76 65 6c 7e 30 20 69 73 |brace-le|vel~0 is|
|00005a20| 20 6f 75 74 70 75 74 20 | 76 65 72 62 61 74 69 6d | output |verbatim|
|00005a30| 0a 28 74 68 65 20 70 72 | 65 73 75 6d 65 64 20 74 |.(the pr|esumed t|
|00005a40| 79 70 6f 20 60 7b 5c 74 | 74 20 3f 7d 27 20 66 6f |ypo `{\t|t ?}' fo|
|00005a50| 72 20 74 68 69 73 20 6e | 61 6d 65 20 69 73 20 61 |r this n|ame is a|
|00005a60| 74 20 62 72 61 63 65 2d | 6c 65 76 65 6c 7e 30 29 |t brace-|level~0)|
|00005a70| 2c 0a 62 75 74 20 79 6f | 75 20 70 72 6f 62 61 62 |,.but yo|u probab|
|00005a80| 6c 79 20 77 6f 6e 27 74 | 20 75 73 65 20 74 68 69 |ly won't| use thi|
|00005a90| 73 20 66 65 61 74 75 72 | 65 20 6d 75 63 68 2e 0a |s featur|e much..|
|00005aa0| 0a 57 69 74 68 69 6e 20 | 65 61 63 68 20 70 69 65 |.Within |each pie|
|00005ab0| 63 65 20 61 20 64 6f 75 | 62 6c 65 20 6c 65 74 74 |ce a dou|ble lett|
|00005ac0| 65 72 20 74 65 6c 6c 73 | 20 5c 42 69 62 54 65 58 |er tells| \BibTeX|
|00005ad0| 5c 20 74 6f 20 75 73 65 | 20 77 68 6f 6c 65 20 74 |\ to use| whole t|
|00005ae0| 6f 6b 65 6e 73 2c 20 61 | 6e 64 0a 61 20 73 69 6e |okens, a|nd.a sin|
|00005af0| 67 6c 65 20 6c 65 74 74 | 65 72 2c 20 74 6f 20 61 |gle lett|er, to a|
|00005b00| 62 62 72 65 76 69 61 74 | 65 20 74 68 65 6d 20 28 |bbreviat|e them (|
|00005b10| 74 68 65 73 65 20 6c 65 | 74 74 65 72 73 20 6d 75 |these le|tters mu|
|00005b20| 73 74 20 62 65 20 61 74 | 20 62 72 61 63 65 2d 6c |st be at| brace-l|
|00005b30| 65 76 65 6c 7e 31 29 3b | 0a 65 76 65 72 79 74 68 |evel~1);|.everyth|
|00005b40| 69 6e 67 20 65 6c 73 65 | 20 77 69 74 68 69 6e 20 |ing else| within |
|00005b50| 74 68 65 20 70 69 65 63 | 65 20 69 73 20 75 73 65 |the piec|e is use|
|00005b60| 64 20 76 65 72 62 61 74 | 69 6d 0a 28 77 65 6c 6c |d verbat|im.(well|
|00005b70| 2c 20 61 6c 6d 6f 73 74 | 20 65 76 65 72 79 74 68 |, almost| everyth|
|00005b80| 69 6e 67 2d 2d 2d 72 65 | 61 64 20 6f 6e 29 2e 0a |ing---re|ad on)..|
|00005b90| 54 68 65 20 74 69 65 20 | 61 74 20 74 68 65 20 65 |The tie |at the e|
|00005ba0| 6e 64 20 6f 66 20 74 68 | 65 20 76 6f 6e 20 70 61 |nd of th|e von pa|
|00005bb0| 72 74 20 28 69 6e 20 5c | 68 62 6f 78 7b 5c 76 65 |rt (in \|hbox{\ve|
|00005bc0| 72 62 7c 7b 76 76 7e 7d | 7c 7d 29 0a 69 73 20 61 |rb|{vv~}||}).is a|
|00005bd0| 20 64 69 73 63 72 65 74 | 69 6f 6e 61 72 79 20 74 | discret|ionary t|
|00005be0| 69 65 2d 2d 2d 5c 42 69 | 62 54 65 58 5c 20 77 69 |ie---\Bi|bTeX\ wi|
|00005bf0| 6c 6c 20 6f 75 74 70 75 | 74 20 61 20 74 69 65 20 |ll outpu|t a tie |
|00005c00| 61 74 20 74 68 61 74 20 | 70 6f 69 6e 74 0a 69 66 |at that |point.if|
|00005c10| 20 69 74 20 74 68 69 6e | 6b 73 20 74 68 65 72 65 | it thin|ks there|
|00005c20| 27 73 20 61 20 6e 65 65 | 64 20 66 6f 72 20 6f 6e |'s a nee|d for on|
|00005c30| 65 3b 0a 6f 74 68 65 72 | 77 69 73 65 20 69 74 20 |e;.other|wise it |
|00005c40| 77 69 6c 6c 20 6f 75 74 | 70 75 74 20 61 20 73 70 |will out|put a sp|
|00005c50| 61 63 65 2e 0a 49 66 20 | 79 6f 75 20 72 65 61 6c |ace..If |you real|
|00005c60| 6c 79 2c 20 72 65 61 6c | 6c 79 2c 20 77 61 6e 74 |ly, real|ly, want|
|00005c70| 20 61 20 74 69 65 20 74 | 68 65 72 65 2c 0a 72 65 | a tie t|here,.re|
|00005c80| 67 61 72 64 6c 65 73 73 | 20 6f 66 20 77 68 61 74 |gardless| of what|
|00005c90| 20 5c 42 69 62 54 65 58 | 5c 20 74 68 69 6e 6b 73 | \BibTeX|\ thinks|
|00005ca0| 2c 20 75 73 65 20 74 77 | 6f 20 6f 66 20 74 68 65 |, use tw|o of the|
|00005cb0| 6d 0a 28 6f 6e 6c 79 20 | 6f 6e 65 20 77 69 6c 6c |m.(only |one will|
|00005cc0| 20 62 65 20 6f 75 74 70 | 75 74 29 3b 20 74 68 61 | be outp|ut); tha|
|00005cd0| 74 20 69 73 2c 20 75 73 | 65 20 5c 68 62 6f 78 7b |t is, us|e \hbox{|
|00005ce0| 5c 76 65 72 62 7c 7b 76 | 76 7e 7e 7d 7c 7d 2e 0a |\verb|{v|v~~}|}..|
|00005cf0| 41 20 74 69 65 20 69 73 | 20 64 69 73 63 72 65 74 |A tie is| discret|
|00005d00| 69 6f 6e 61 72 79 20 6f | 6e 6c 79 20 69 66 20 69 |ionary o|nly if i|
|00005d10| 74 27 73 20 74 68 65 20 | 6c 61 73 74 20 63 68 61 |t's the |last cha|
|00005d20| 72 61 63 74 65 72 20 6f | 66 20 74 68 65 20 70 69 |racter o|f the pi|
|00005d30| 65 63 65 3b 0a 61 6e 79 | 77 68 65 72 65 20 65 6c |ece;.any|where el|
|00005d40| 73 65 20 69 74 27 73 20 | 74 72 65 61 74 65 64 20 |se it's |treated |
|00005d50| 61 73 20 61 6e 20 6f 72 | 64 69 6e 61 72 79 20 63 |as an or|dinary c|
|00005d60| 68 61 72 61 63 74 65 72 | 2e 0a 0a 5c 42 69 62 54 |haracter|...\BibT|
|00005d70| 65 58 5c 20 70 75 74 73 | 20 64 65 66 61 75 6c 74 |eX\ puts| default|
|00005d80| 20 73 74 72 69 6e 67 73 | 20 7b 5c 65 6d 20 62 65 | strings| {\em be|
|00005d90| 74 77 65 65 6e 5c 2f 7d | 20 74 6f 6b 65 6e 73 20 |tween\/}| tokens |
|00005da0| 6f 66 20 61 20 6e 61 6d | 65 20 70 61 72 74 3a 0a |of a nam|e part:.|
|00005db0| 46 6f 72 20 77 68 6f 6c | 65 20 74 6f 6b 65 6e 73 |For whol|e tokens|
|00005dc0| 20 69 74 20 75 73 65 73 | 20 65 69 74 68 65 72 20 | it uses| either |
|00005dd0| 61 20 73 70 61 63 65 20 | 6f 72 20 61 20 74 69 65 |a space |or a tie|
|00005de0| 2c 0a 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 77 |,.depend|ing on w|
|00005df0| 68 69 63 68 20 6f 6e 65 | 20 69 74 20 74 68 69 6e |hich one| it thin|
|00005e00| 6b 73 20 69 73 20 62 65 | 73 74 2c 0a 61 6e 64 20 |ks is be|st,.and |
|00005e10| 66 6f 72 20 61 62 62 72 | 65 76 69 61 74 65 64 20 |for abbr|eviated |
|00005e20| 74 6f 6b 65 6e 73 20 69 | 74 20 75 73 65 73 20 61 |tokens i|t uses a|
|00005e30| 20 70 65 72 69 6f 64 20 | 66 6f 6c 6c 6f 77 65 64 | period |followed|
|00005e40| 20 62 79 0a 65 69 74 68 | 65 72 20 61 20 73 70 61 | by.eith|er a spa|
|00005e50| 63 65 20 6f 72 20 61 20 | 74 69 65 2e 0a 48 6f 77 |ce or a |tie..How|
|00005e60| 65 76 65 72 20 69 74 20 | 64 6f 65 73 6e 27 74 20 |ever it |doesn't |
|00005e70| 75 73 65 20 74 68 69 73 | 20 64 65 66 61 75 6c 74 |use this| default|
|00005e80| 20 73 74 72 69 6e 67 20 | 61 66 74 65 72 20 74 68 | string |after th|
|00005e90| 65 20 6c 61 73 74 20 74 | 6f 6b 65 6e 20 69 6e 20 |e last t|oken in |
|00005ea0| 61 20 6c 69 73 74 3b 0a | 68 65 6e 63 65 20 74 68 |a list;.|hence th|
|00005eb0| 65 72 65 27 73 20 6e 6f | 20 70 65 72 69 6f 64 20 |ere's no| period |
|00005ec0| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 68 65 20 60 4a |followin|g the `J|
|00005ed0| 27 20 66 6f 72 20 6f 75 | 72 20 65 78 61 6d 70 6c |' for ou|r exampl|
|00005ee0| 65 2e 0a 59 6f 75 20 73 | 68 6f 75 6c 64 20 68 61 |e..You s|hould ha|
|00005ef0| 76 65 20 75 73 65 64 0a | 5c 62 65 67 69 6e 7b 76 |ve used.|\begin{v|
|00005f00| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 22 7b 76 |erbatim}|. "{v|
|00005f10| 76 7e 7d 7b 6c 6c 7d 7b | 2c 20 6a 6a 7d 7b 2c 20 |v~}{ll}{|, jj}{, |
|00005f20| 66 2e 7d 22 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |f.}".\en|d{verbat|
|00005f30| 69 6d 7d 0a 74 6f 20 67 | 65 74 20 5c 42 69 62 54 |im}.to g|et \BibT|
|00005f40| 65 58 5c 20 74 6f 20 70 | 72 6f 64 75 63 65 20 74 |eX\ to p|roduce t|
|00005f50| 68 65 20 73 61 6d 65 20 | 66 6f 72 6d 61 74 74 65 |he same |formatte|
|00005f60| 64 20 73 74 72 69 6e 67 | 20 62 75 74 20 77 69 74 |d string| but wit|
|00005f70| 68 20 74 68 65 20 71 75 | 65 73 74 69 6f 6e 0a 6d |h the qu|estion.m|
|00005f80| 61 72 6b 20 72 65 70 6c | 61 63 65 64 20 62 79 20 |ark repl|aced by |
|00005f90| 61 20 70 65 72 69 6f 64 | 2e 0a 4e 6f 74 65 20 74 |a period|..Note t|
|00005fa0| 68 61 74 20 74 68 65 20 | 70 65 72 69 6f 64 20 73 |hat the |period s|
|00005fb0| 68 6f 75 6c 64 20 67 6f | 20 69 6e 73 69 64 65 20 |hould go| inside |
|00005fc0| 74 68 65 20 46 69 72 73 | 74 2d 6e 61 6d 65 20 70 |the Firs|t-name p|
|00005fd0| 69 65 63 65 2c 0a 72 61 | 74 68 65 72 20 74 68 61 |iece,.ra|ther tha|
|00005fe0| 6e 20 77 68 65 72 65 20 | 74 68 65 20 71 75 65 73 |n where |the ques|
|00005ff0| 74 69 6f 6e 20 6d 61 72 | 6b 20 77 61 73 2c 20 69 |tion mar|k was, i|
|00006000| 6e 20 63 61 73 65 20 61 | 20 6e 61 6d 65 20 68 61 |n case a| name ha|
|00006010| 73 20 6e 6f 20 46 69 72 | 73 74 20 70 61 72 74 2e |s no Fir|st part.|
|00006020| 0a 0a 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |..If you| want to|
|00006030| 20 6f 76 65 72 72 69 64 | 65 20 5c 42 69 62 54 65 | overrid|e \BibTe|
|00006040| 58 27 73 20 64 65 66 61 | 75 6c 74 20 62 65 74 77 |X's defa|ult betw|
|00006050| 65 65 6e 2d 74 6f 6b 65 | 6e 20 73 74 72 69 6e 67 |een-toke|n string|
|00006060| 73 2c 20 79 6f 75 0a 6d | 75 73 74 20 65 78 70 6c |s, you.m|ust expl|
|00006070| 69 63 69 74 6c 79 20 73 | 70 65 63 69 66 79 20 61 |icitly s|pecify a|
|00006080| 20 73 74 72 69 6e 67 2e | 0a 46 6f 72 20 65 78 61 | string.|.For exa|
|00006090| 6d 70 6c 65 20 73 75 70 | 70 6f 73 65 20 79 6f 75 |mple sup|pose you|
|000060a0| 20 77 61 6e 74 20 61 20 | 6c 61 62 65 6c 20 74 6f | want a |label to|
|000060b0| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 66 69 72 | contain| the fir|
|000060c0| 73 74 20 6c 65 74 74 65 | 72 20 66 72 6f 6d 20 65 |st lette|r from e|
|000060d0| 61 63 68 0a 74 6f 6b 65 | 6e 20 69 6e 20 74 68 65 |ach.toke|n in the|
|000060e0| 20 76 6f 6e 20 61 6e 64 | 20 4c 61 73 74 20 70 61 | von and| Last pa|
|000060f0| 72 74 73 2c 20 77 69 74 | 68 20 6e 6f 20 73 70 61 |rts, wit|h no spa|
|00006100| 63 65 73 3b 0a 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ces;.you| should |
|00006110| 75 73 65 20 74 68 65 20 | 66 6f 72 6d 61 74 20 73 |use the |format s|
|00006120| 74 72 69 6e 67 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |tring.\b|egin{ver|
|00006130| 62 61 74 69 6d 7d 0a 20 | 20 20 20 22 7b 76 7b 7d |batim}. | "{v{}|
|00006140| 7d 7b 6c 7b 7d 7d 22 0a | 5c 65 6e 64 7b 76 65 72 |}{l{}}".|\end{ver|
|00006150| 62 61 74 69 6d 7d 0a 73 | 6f 20 74 68 61 74 20 5c |batim}.s|o that \|
|00006160| 42 69 62 54 65 58 5c 20 | 77 69 6c 6c 20 70 72 6f |BibTeX\ |will pro|
|00006170| 64 75 63 65 20 60 7b 5c | 74 74 20 64 6c 56 50 7d |duce `{\|tt dlVP}|
|00006180| 27 20 61 73 20 74 68 65 | 20 66 6f 72 6d 61 74 74 |' as the| formatt|
|00006190| 65 64 20 73 74 72 69 6e | 67 2e 0a 59 6f 75 20 6d |ed strin|g..You m|
|000061a0| 75 73 74 20 67 69 76 65 | 20 61 20 73 74 72 69 6e |ust give| a strin|
|000061b0| 67 20 66 6f 72 20 65 61 | 63 68 20 70 69 65 63 65 |g for ea|ch piece|
|000061c0| 20 77 68 6f 73 65 20 64 | 65 66 61 75 6c 74 20 79 | whose d|efault y|
|000061d0| 6f 75 20 77 61 6e 74 20 | 6f 76 65 72 72 69 64 64 |ou want |overridd|
|000061e0| 65 6e 0a 28 74 68 65 20 | 65 78 61 6d 70 6c 65 20 |en.(the |example |
|000061f0| 68 65 72 65 20 75 73 65 | 73 20 74 68 65 20 6e 75 |here use|s the nu|
|00006200| 6c 6c 20 73 74 72 69 6e | 67 20 66 6f 72 20 62 6f |ll strin|g for bo|
|00006210| 74 68 20 70 69 65 63 65 | 73 29 2c 20 61 6e 64 20 |th piece|s), and |
|00006220| 74 68 69 73 20 73 74 72 | 69 6e 67 0a 6d 75 73 74 |this str|ing.must|
|00006230| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 66 6f 6c | immedia|tely fol|
|00006240| 6c 6f 77 20 65 69 74 68 | 65 72 20 74 68 65 20 73 |low eith|er the s|
|00006250| 69 6e 67 6c 65 20 6f 72 | 20 64 6f 75 62 6c 65 20 |ingle or| double |
|00006260| 6c 65 74 74 65 72 20 66 | 6f 72 20 74 68 65 20 70 |letter f|or the p|
|00006270| 69 65 63 65 2e 0a 59 6f | 75 20 6d 61 79 20 6e 6f |iece..Yo|u may no|
|00006280| 74 20 68 61 76 65 20 61 | 6e 79 20 6f 74 68 65 72 |t have a|ny other|
|00006290| 20 6c 65 74 74 65 72 73 | 20 61 74 20 62 72 61 63 | letters| at brac|
|000062a0| 65 2d 6c 65 76 65 6c 7e | 31 20 69 6e 20 74 68 65 |e-level~|1 in the|
|000062b0| 20 66 6f 72 6d 61 74 20 | 73 74 72 69 6e 67 2e 0a | format |string..|
|000062c0| 0a 5c 62 69 62 6c 69 6f | 67 72 61 70 68 79 7b 62 |.\biblio|graphy{b|
|000062d0| 74 78 64 6f 63 7d 0a 5c | 62 69 62 6c 69 6f 67 72 |txdoc}.\|bibliogr|
|000062e0| 61 70 68 79 73 74 79 6c | 65 7b 70 6c 61 69 6e 7d |aphystyl|e{plain}|
|000062f0| 0a 5c 65 6e 64 7b 64 6f | 63 75 6d 65 6e 74 7d 0a |.\end{do|cument}.|
+--------+-------------------------+-------------------------+--------+--------+